Sunan an-Nasa'i · Hadith 1711
The Book of Qiyam Al-Lail (The Night Prayer) and Voluntary Prayers During the Day - كتاب قيام الليل وتطوع النهار
أخبرنا العباس بن الوليد بن مزيد، قال أخبرني أبي قال، حدثنا الأوزاعي، قال حدثني الزهري، قال حدثنا عطاء بن يزيد، عن أبي أيوب، أن رسول الله صلى الله عليه وسلم قال " الوتر حق فمن شاء أوتر بخمس ومن شاء أوتر بثلاث ومن شاء أوتر بواحدة " .
Al-Awza'I said: "Az-Zuhri narrated to me, he said: 'Ata bin Yazid, from Abu Ayyub:The Messenger of Allah (ﷺ) said: 'Witr is a duty, and whoever wants to pray witr with seven (rak'ahs), let him do so; whoever wants to pray witr with five, let him do so, whoever wants to pray witr with three, let him do so; and whoever wants to pray witr with one, let him do so.'"
Gradings are classical jarḥ-wa-taʿdīl, name-matched to a rijāl index (not individually re-verified).