Sunan al-Darimi 783
أَخْبَرَنَا عُبَيْدُ اللَّهِ بْنُ مُوسَى، عَنْ سُفْيَانَ، عَنْ عَبْدِ اللَّهِ بْنِ دِينَارٍ، عَنِ ابْنِ عُمَرَ ﵄ ، قَالَ: سَأَلَ عُمَرُ رِضْوَانُ اللَّهِ عَلَيْهِ، رَسُولَ اللَّهِ ﷺ فَقَالَ: تُصِيبُنِي الْجَنَابَةُ مِنَ اللَّيْلِ؟ فَأَمَرَهُ أَنْ «يَغْسِلَ ذَكَرَهُ وَيَتَوَضَّأَ، ثُمَّ يَرْقُدَ»
ʿUbaydullah ibn Musa informed us, from Sufyan, from ʿAbdullah ibn Dinar, from Ibn ʿUmar, may Allah be pleased with them both, who said: ʿUmar, may Allah's pleasure be upon him, asked the Messenger of Allah ﷺ: "I become junub during the night." He told him to wash his private part, perform wudu, and then sleep.