The Messenger of Allah ﷺ said, "The night prayer is to be performed in pairs of two units. When you fear the approach of dawn, pray a single unit as witr, and make the last of your prayer the witr."
حدثنا هاشم حدثنا الليث حدثني نافع
عن رسول الله ﷺ أنه قال صلاة الليل مثنى مثنى فإذا خفت الصبح فأوتر بواحدة واجعل آخر صلاتك وترا