Abdullah bin Umar reported,

A man asked the Messenger of Allah ﷺ about the night prayer, and the Messenger of Allah ﷺ replied, "The night prayer is two units at a time. When one of you fears the approach of dawn, let him pray a single unit, which will make all that he has prayed odd-numbered."

Azami 2813

Sahih

عن ابن عمر

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

الأعظمي 2813صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Prayer
Chapter
Witr prayer
Section
Witr of the Prophet ﷺ with one rakat
Numbering
Jami al-Kamil 2813 (2nd edition)
Azami 2813