Ali bin Abu Talib reported,

The witr prayer is not strictly obligatory like the prescribed prayers, but it is a sunnah established by the Messenger of Allah ﷺ.

Nasai 1677

Sahih

أخبرني محمد بن إسمعيل بن إبراهيم عن أبي نعيم عن سفيان عن أبي إسحق عن عاصم بن ضمرة

عن علي رضي الله عنه قال

الوتر ليس بحتم كهيئة المكتوبة ولكنه سنة سنها رسول الله ﷺ

النسائي 1677صحيح
Contents
Reference
Commentary
Ayat
Collection
Sunan Nasai Sughra
Book
Night prayer and voluntary prayers of the day
Chapter
Encouragement to pray Witr before sleeping
Numbering
Darussalam 1677
Nasai 1677