Once a person asked Allah's Messenger (ﷺ) (ﷺ) about the night prayer. Allah's Apostle (ﷺ)…

Sahih al-Bukhari Book 14 Hadith 1

Sahih al-Bukhari #990

Witr Prayer 14:1

Narrated Ibn `Umar:

Once a person asked Allah's Messenger (ﷺ) (ﷺ) about the night prayer. Allah's Apostle (ﷺ) replied, "The night prayer is offered as two Rak`at followed by two Rak`at and so on and if anyone is afraid of the approaching dawn (Fajr prayer) he should pray one Rak`ah and this will be a Witr for all the Rak`at which he has prayed before."

Chapter: What is said regarding the Witr prayer

Grade: Sahih