Abdullah bin Abbas reported,

He reported that a man was struck with a head wound during the time of the Messenger of Allah ﷺ. He then had a wet dream and was instructed to perform the full bath. He bathed, suffered a chill, and died. When news of this reached the Prophet ﷺ, he said, "They killed him, may Allah kill them. Was not the cure for ignorance simply to ask?"Ata said, "It has reached us that the Messenger of Allah ﷺ said, 'He should have washed his body and left his head alone where the wound was.'"

Ibn Majah 572

Sahih

حدثنا هشام بن عمار حدثنا عبد الحميد بن حبيب بن أبي العشرين حدثنا الأوزاعي عن عطاء بن أبي رباح قال

سمعت ابن عباس

يخبر أن رجلا أصابه جرح في رأسه على عهد رسول الله ﷺ ثم أصابه احتلام فأمر بالاغتسال فاغتسل فكز فمات فبلغ ذلك النبي ﷺ فقال قتلوه قتلهم الله أولم يكن شفاء العي السؤال قال عطاء وبلغنا أن رسول الله ﷺ قال لو غسل جسده وترك رأسه حيث أصابه الجراح

ابن ماجه 572صحيح
Contents
Reference
Commentary
Ayat
Collection
Sunan Ibn Majah
Book
Purification and its sunnahs
Chapter
Wounded person who is in a state of janaba and fears for himself if he bathes
Numbering
Darussalam 572
Ibn Majah 572