Abdullah bin Umar reported,

A man asked the Prophet ﷺ, while I was standing between him and the questioner, "Messenger of Allah, how is the night prayer performed?"He replied, "Two by two. When you fear the approach of dawn, pray a single rakah, and let the last of your prayer be witr."Then a year later, a man asked him the same question while I was in that same spot near the Messenger of Allah ﷺ. I do not know whether it was the same man or another, and he gave him the same answer.

Muslim 1751

Sahih

و حدثني أبو الربيع الزهراني حدثنا حماد حدثنا أيوب وبديل عن عبد الله بن شقيق

عن عبد الله بن عمر

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

مسلم 1751صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Muslim
Book
Travelers' prayer and its shortening
Chapter
Night prayer is two rakats at a time and Witr is one rakat at the end of the night
Numbering
Darussalam 1751
Muslim 1751