Sunan Abi Dawud, Book 1, Hadith 337 (USC-MSA) ⓘ
Narrated Abdullah ibn Abbas: A man was injured during the lifetime of the Messenger of Allah; he then had a sexual dream, and he was advised to wash and he washed himself. Consequently he died. When this was reported to the Messenger of Allah he said: They killed him; may Allah kill them! Is not inquiry the cure of ignorance?
حَدَّثَنَا نَصْرُ بْنُ عَاصِمٍ الأَنْطَاكِيُّ، حَدَّثَنَا مُحَمَّدُ بْنُ شُعَيْبٍ، أَخْبَرَنِي الأَوْزَاعِيُّ، أَنَّهُ بَلَغَهُ عَنْ عَطَاءِ بْنِ أَبِي رَبَاحٍ، أَنَّهُ سَمِعَ عَبْدَ اللَّهِ بْنَ عَبَّاسٍ، قَالَ أَصَابَ رَجُلاً جُرْحٌ فِي عَهْدِ رَسُولِ اللَّهِ صلى الله عليه وسلم ثُمَّ احْتَلَمَ فَأُمِرَ بِالاِغْتِسَالِ فَاغْتَسَلَ فَمَاتَ فَبَلَغَ رَسُولَ اللَّهِ صلى الله عليه وسلم فَقَالَ " قَتَلُوهُ قَتَلَهُمُ اللَّهُ أَلَمْ يَكُنْ شِفَاءُ الْعِيِّ السُّؤَالَ " .
also referenced under: Hadith 337 (DarusSalam) & Hadith 337 (Hasan)