[Machine] The Messenger of Allah ﷺ used to touch his family at night and then wake up in a state of janabah, so he would perform ghusl and observe fasting.
كَانَ رَسُولُ اللهِ ﷺ «يَمَسُّ أَهْلَهُ مِنَ اللَّيْلِ فَيُصْبِحُ جُنُبًا فَيَغْتَسِلُ وَيَصُومُ»