The Messenger of Allah ﷺ used to pray at night in pairs of two, and he would perform the witr with a single rakah at the end of the night.
حدثنا محمد بن جعفر حدثنا شعبة عن أنس بن سيرين
أن رسول الله ﷺ كان يصلي بالليل مثنى مثنى ويوتر بركعة من آخر الليل