Sunan an-Nasa'i, Book 20, Hadith 79 (Nasa'i 1681)

It was narrated that Ali, may Allah (SWT) be pleased with him, said:

"Witr is not essential like the obligatory prayers, but it is the sunnah of the Messenger of Allah (ﷺ)."