Abdullah bin Umar reported,

The Prophet ﷺ said, "The night prayer is in pairs of two. When you wish to conclude, pray a single rakah which makes what you prayed odd-numbered."Qasim said, "Since the time we came of age, we have seen people praying witr with three rakahs. There is ample room for both practices, and I hope there is no harm in either of them."

Bukhari 993

Sahih

حدثنا يحيى بن سليمان قال حدثني عبد الله بن وهب قال أخبرني عمرو بن الحارث أن عبد الرحمن بن القاسم حدثه عن أبيه

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

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

البخاري 993صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Bukhari
Book
Witr
Chapter
Witr
Numbering
Darussalam 993
Bukhari 993