Abu Ayub reported,

The Messenger of Allah ﷺ said, "Witr is a duty. Whoever wishes may pray witr with five, whoever wishes may pray witr with three, and whoever wishes may pray witr with one."

Ibn Majah 1190

Sahih

حدثنا عبد الرحمن بن إبراهيم الدمشقي حدثنا الفريابي عن الأوزاعي عن الزهري عن عطاء بن يزيد الليثي

عن أبي أيوب الأنصاري

أن رسول الله ﷺ قال الوتر حق فمن شاء فليوتر بخمس ومن شاء فليوتر بثلاث ومن شاء فليوتر بواحدة

ابن ماجه 1190صحيح
Contents
Reference
Commentary
Ayat
Collection
Sunan Ibn Majah
Book
Establishing prayer and the sunnah regarding it
Chapter
Witr with three, five, seven, and nine
Numbering
Darussalam 1190
Ibn Majah 1190