The Messenger of Allah ﷺ said, "Do not sleep while in a state of major impurity until you perform ablution."
حدثنا حسين حدثنا سفيان عن عبيد الله بن أبي يزيد عمن
قال رسول الله ﷺ لا ترقدن جنبا حتى تتوضأ
No references are available.
Its isnad is daif, containing an unidentified narrator, but the hadith is sahih according to Bukhari 1/80 in the Book of Ghusl, chapter on a person in a state of janabah staying in the house, and Muslim in the Book of Menstruation, chapter on the permissibility of a person in a state of janabah sleeping, 1/249 no. 306, and Abu Dawud in the Book of Purification, chapter on a person in a state of janabah sleeping, and Tirmidhi 1/206 no. 120. It will come again in similar form at 16671 and 23698.