Sunan Ibn Majah, Book 1, Hadith 318 (Ibn Majah 584)

It was narrated that 'Aishah said:

"When the Messenger of Allah wanted to sleep and he was sexually impure, he would perform ablution as for prayer."