The Messenger of Allah ﷺ said, "Witr is due upon every Muslim. Whoever wishes to pray witr with five rakahs may do so, whoever wishes to pray it with three may do so, and whoever wishes to pray it with one may do so."
قال رسول الله ﷺ: الوتر على كل مسلم، فمن أحب أن يوتر بخمس فليفعل، ومن أحب أن يوتر بثلاث فليفعل، ومن أحب أن يوتر بواحدة فليفعل.
Abu Dawud (1422) narrated it from Abdul-Rahman bin Mubarak, who said, "Quraysh bin Hayan Ajli told me, Bakr bin Waail told us, from Zuhri, from Ata bin Yazid Laythi, from Abu Ayub Ansari," and he related it. Nasai (1711, 1710) narrated it through Duwayd bin Nafi and Uzai, and Ibn Majah (1190) narrated it from Uzai alone, both of them from Zuhri with the same wording. Its chain of transmission is sahih.There is a difference of opinion regarding this hadith as transmitted from Zuhri. Bakr bin Waail, Uzai, and Duwayd bin Nafi narrated it from him as a raised hadith (marfu), and they were followed in raising it by Sufyan bin Husayn, Yunus, Sufyan bin Uyayna, and others.Hakim (1/302) narrated it through another route from Uzai and said, "It is sahih according to the criteria of the two Shaykhs, though they did not include it. Muhammad bin Walid Zubaydi, Sufyan bin Uyayna, Sufyan bin Husayn, Muamar bin Rashid, Muhammad bin Ishaq, and Bakr bin Waail all followed him in raising it."I say, a group opposed these narrators and stopped the hadith at Abu Ayub, without raising it. The ruling goes to those who raised it, since they are greater in number. Hakim points to this when he says, "I have no doubt that the two Shaykhs left out this hadith because some of the companions of Zuhri stopped it at Abu Ayub, but this is not the sort of thing that should be used to fault a hadith like this."This hadith is presented in Minna Kubra (2/337-338). See there for more.