[Machine] The Prophet ﷺ used to, when he wanted to sleep while in a state of major impurity, perform ablution for prayer. And when he wanted to eat, he would wash his hands and then eat.
أَنَّ النَّبِيَّ ﷺ كَانَ «إِذَا أَرَادَ أَنْ يَنَامَ وَهُوَ جُنُبٌ تَوَضَّأَ وُضُوءَهُ لِلصَّلَاةِ وَإِذَا أَرَادَ أَنْ يَطْعَمَ غَسَلَ يَدَيْهِ ثُمَّ يَأْكُلُ»