when the prophet ﷺ intended to sleep while he was sexually defiled, he would perform ablution as he did for prayer. (Using translation from Abū Dāʾūd 222)
أَنَّ رَسُولَ اللهِ ﷺ «كَانَ إِذَا أَرَادَ أَنْ يَنَامَ وَهُوَ جُنُبٌ تَوَضَّأَ وُضُوءَهُ لِلصَّلَاةِ وَإِذَا أَرَادَ أَنْ يَأْكُلَ غَسَلَ يَدَيْهِ»