It is narrated from Sayyidah Aishah (may Allah be pleased with her) that when they intended to wash the Messenger of Allah (peace and blessings be upon him), the people disagreed. Some said: Shall we remove the clothes of the Messenger of Allah (peace and blessings be upon him) as we remove the clothes of our dead, or shall we wash him with his clothes on him? Then Allah Almighty sent drowsiness upon them, until there was not one of them but that his chin rested on his chest from sleep. Then a speaker from a corner of the house said (and they did not know who it was): "Wash the Messenger of Allah (peace and blessings be upon him) with his clothes on his blessed body." So they washed him while his (peace and blessings be upon him) shirt was on his (peace and blessings be upon him) body, pouring water over it and rubbing him from over it. Aishah (may Allah be pleased with her) says: "By Allah, had I known beforehand about my affair what I came to know afterwards, no one would have washed the Messenger of Allah (peace and blessings be upon him) except his (peace and blessings be upon him) wives."
Hadith Referenceالسنن الكبرى للبيهقي / كتاب الجنائز / 6621