It is narrated from Sayyiduna Ibn Umar (may Allah be pleased with them both) that once Sayyiduna Umar (may Allah be pleased with him) asked the Messenger of Allah (peace and blessings be upon him), "O Messenger of Allah! If I become impure at night and wish to sleep before performing ghusl, what should I do?" The Prophet (peace and blessings be upon him) said: "Wash your private parts and perform ablution as for prayer, then go to sleep."