It was the practice of the Prophet (peace and blessings be upon him):
"He (peace and blessings be upon him) would sometimes sleep while in a state of major ritual impurity (janabah) without even touching water."
Hadith Referenceصحیح الجامع الصغیر / حرف الكاف / 5019
Hadith Gradingالألبانی:صحيح
Hadith Takhrij[حم ت ن هـ] عن عائشة. المشكاة ٤٦٨، صحيح أبي داود ٢٢٣: الطيالسي، الطحاوي، هق.