Sunan Ibn Majah, Book 7, Hadith 67 (Ibn Majah 1704)

It was narrated that Nafi’ said:

“I asked Umm Salamah about a man who gets up in the morning when he is in a state of sexual impurity and wants to fast. She said: “The Messenger of Allah (ﷺ) used to get up in the morning in a state of sexual impurity after having intercourse, not from a wet dream, then he would take a bath and complete his fast.’”