Al-Aswad ibn Yazid said:
“I asked 'A'sha (may Allah be well pleased with her) about the nighttime ritual prayer of Allah’s Messenger (Allah bless him and give him peace), so she said: ‘He used to sleep at the beginning of the night. Then he would get up, and when it was the time before daybreak, he performed a witr [a ritual prayer with an odd number of cycles]. Then he came to his
mattress, and if he had a need, he had sexual intercourse with his wife. When he heard the call to prayer, he sprang up, and if he was in a state of major ritual impurity, he poured
water over himself, and if not, he performed the minor ritual ablution and went out to the ritual prayer.”