"When the Messenger of Allah wanted to sleep and he was sexually impure, he would perform ablution as for prayer."
Sunan Ibn Majah Book 1, Hadith 318