I heard Ibn ʿUmar say: ʿUmar (...) asked the Messenger of Allah ﷺ : If I become junub at night; what should I do? He said: ʿWash your private part then do wudoo’ then go to sleep.” (Using translation from Aḥmad 359)
سَمِعْتُ ابْنَ عُمَرَ يَقُولُ سَأَلَ عُمَرُ رَسُولَ اللهِ ﷺ تُصِيبُنِي الْجَنَابَةُ مِنَ اللَّيْلِ فَمَا أَصْنَعُ؟ قَالَ اغْسِلْ ذَكَرَكَ ثُمَّ تَوَضَّأْ ثُمَّ ارْقُدْ