The Ruling on Sleeping While in a State of Major Impurity
Question :
Is it permissible to sleep while being in a state of major impurity?
Answer:
It is allowed for a person to sleep while in a state of major and then perform ablution as one does for prayer.
'Aishah, may Allah be pleased with her, said that when Allah's Messenger wanted to sleep, and he was in a state of sexual impurity, he would wash his face and perform the ablution for the prayer.
Source:
The Permanent Committee
Fatawa Islamiyah, Vol. 8 Page 398