‘A’isha said that he, meaning God’s Messenger, would sleep in the early part of the night and keep awake in the latter part. If he then wished intercourse with his wife he satisfied his desire, and then went to sleep. If he was sexually defiled when the first call to prayer was made, he would get up and pour water on it, but if not, he performed the ablution for the prayer and then prayed two rak'as.
‘Abdallah b. ‘Amr reported God’s Messenger as saying, “The prayer dearest to God is David’s and the fasting dearest to God is David’s. He would sleep half the night, get up to pray for a third of it, then sleep the remaining sixth; and he would fast on alternate days."
Abu Umama reported God’s Messenger as saying, “Make a practice of getting up at night, for it was the custom of the pious before you, is a means of bringing you near to your Lord, an atonement for evil deeds and a preventative of sin."
Jabir said he heard the Prophet say, “There is an hour during the night at which no Muslim man will ask God for good in this world and the next without His giving it to him; and that applies to every night."