It was narrated from 'Aishah that if the Messenger of Allah (ﷺ) wanted to sleep while he was Junub, he would perform Wudu', and if he wanted to eat he would wash his hands.
Hadith ReferenceSunan an-Nasa'i / Mention When Ghusal (A Purifying Bath) Is Obligatory And When It Is Not / Hadith: 257