وَعَنْ عَلِيِّ بْنِ أَبِي طَالِبٍ رضى الله عنه
قَالَ: «لَيْسَ اَلْوِتْرُ بِحَتْمٍ كَهَيْئَةِ اَلْمَكْتُوبَةِ، وَلَكِنْ سُنَّةٌ سَنَّهَا رَسُولُ اَللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ -»
The Witr prayer is not obligatory as the prescribed prayer is, but it is a Sunnah which was established by the practice of the Messenger of Allah (sallallahu alayhi wa sallam).