It is narrated from Sayyiduna Umar (may Allah be pleased with him) that once he asked the Messenger of Allah (peace and blessings be upon him): "If I become impure, what should I do?" The Prophet (peace and blessings be upon him) instructed him to wash his private parts, perform ablution as for prayer, and then go to sleep.