Abdullah bin Umar reported,

The Messenger of Allah ﷺ said, "The night prayer is in pairs of two, and the witr is a single rakah."I asked, "What if sleep overtakes me? What if I fall asleep?"He replied, "Put your 'what if' up by that star." So I raised my head, and there was Simak.Then he repeated, saying, the Messenger of Allah ﷺ said, "The night prayer is in pairs of two, and the witr is a single rakah before dawn."

Ibn Majah 1175

Sahih

حدثنا محمد بن عبد الملك بن أبي الشوارب حدثنا عبد الواحد بن زياد حدثنا عاصم عن أبي مجلز

عن ابن عمر قال

قال رسول الله ﷺ صلاة الليل مثنى مثنى والوتر ركعة قلت أرأيت إن غلبتني عيني أرأيت إن نمت قال اجعل أرأيت عند ذلك النجم فرفعت رأسي فإذا السماك ثم أعاد فقال قال رسول الله ﷺ صلاة الليل مثنى مثنى والوتر ركعة قبل الصبح

ابن ماجه 1175صحيح
Contents
Reference
Commentary
Ayat
Collection
Sunan Ibn Majah
Book
Establishing prayer and the sunnah regarding it
Chapter
Witr with one rakat
Numbering
Darussalam 1175
Ibn Majah 1175