قَالَ عَطَاءٌ: فَبَلَغَنِي أَنَّ النَّبِيَّ صلى الله عليه وسلم سُئِلَ عَنْ ذَلِكَ فَقَالَ: «لَوْ غَسَلَ جَسَدَهُ وَتَرَكَ رَأْسَهُ حَيْثُ أَصَابَهُ الْجِرَاحُ أَجْزَأَهُ»
It is narrated from Ata (may Allah have mercy on him) that he said: It reached me that the Prophet (peace and blessings be upon him) was asked about this matter, and he (peace and blessings be upon him) said: "If he had washed his body and left (unwashed) the part of his head where he had been wounded, that would have sufficed him."