It is narrated from Sayyidah Aishah (may Allah be pleased with her) that when the Messenger of Allah (peace and blessings be upon him) was junub and intended to sleep, he would perform ablution or tayammum.
Hadith Referenceالسنن الكبرى للبيهقي / كتاب الطهارة / 968