Sunan an-Nasa'i, Book 1, Hadith 261 (Nasa'i 261)

It was narrated that Ibn 'Umar said:

"Umar mentioned to the Messenger of Allah (ﷺ) that he became Junub at night, and the Messenger of Allah (ﷺ) said: 'Perform Wudu' and wash you penis, then sleep.'"