Hadith 1712

Abu Mu'aid narrated from Az-Zuhri, who said: "Ata' bin Yazid narrated to me that he heard Abu Ayyub Al-Ansari say: 'Witr is a duty, so whoever wants to pray witr with five rak'ahs 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.'"

أَخْبَرَنَا الرَّبِيعُ بْنُ سُلَيْمَانَ بْنِ دَاوُدَ، قَالَ حَدَّثَنَا عَبْدُ اللَّهِ بْنُ يُوسُفَ، قَالَ حَدَّثَنَا الْهَيْثَمُ بْنُ حُمَيْدٍ، قَالَ حَدَّثَنِي أَبُو مُعَيْدٍ، عَنِ الزُّهْرِيِّ، قَالَ حَدَّثَنِي عَطَاءُ بْنُ يَزِيدَ، أَنَّهُ سَمِعَ أَبَا أَيُّوبَ الأَنْصَارِيَّ، يَقُولُ الْوِتْرُ حَقٌّ فَمَنْ أَحَبَّ أَنْ يُوتِرَ بِخَمْسِ رَكَعَاتٍ فَلْيَفْعَلْ وَمَنْ أَحَبَّ أَنْ يُوتِرَ بِثَلاَثٍ فَلْيَفْعَلْ وَمَنْ أَحَبَّ أَنْ يُوتِرَ بِوَاحِدَةٍ فَلْيَفْعَلْ ‏.‏

Reference: 1117200
In-book reference: Book 20, Hadith 1712
Hadith 1712 - The Book of Qiyam Al-Lail (The Night Prayer) and Voluntary Prayers During the Day - Sunan an-Nasa'i - Sunnah.com