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."
حدثنا يحيى بن سليمان قال حدثني عبد الله بن وهب قال أخبرني عمرو بن الحارث أن عبد الرحمن بن القاسم حدثه عن أبيه
قال النبي ﷺ صلاة الليل مثنى مثنى فإذا أردت أن تنصرف فاركع ركعة توتر لك ما صليت قال القاسم ورأينا أناسا منذ أدركنا يوترون بثلاث وإن كلا لواسع أرجو أن لا يكون بشيء منه بأس