Those who hold it is obligatory, and their evidences:
Imam Abu Hanifa (may Allah be pleased with him) holds that it is obligatory, and his argument is based on the hadiths mentioned regarding the virtues of Witr, for example the statement of the Prophet ﷺ that Allah the Exalted has aided you with one prayer, which is the Witr prayer.
This hadith also contains the words that this prayer is better for you than red camels.
This hadith mentions a virtue, but it does not indicate obligation. And if such a virtue could be made evidence of obligation, then the two Sunnah rak’ahs of Fajr have, in a way, been described with even greater virtue. For in the sahih hadith of Bukhari and Muslim, the Prophet ﷺ declared them خير من الدنيا وما فيها, and it is obvious that what is better than دنيا وما فيها would be superior to what is better than red camels, because red camels are a part of the world, and the status of a part compared with the whole is clear. Despite such a great virtue, the Sunnah rak’ahs have at most been called emphasised Sunnah (mu’akkadah), not obligatory. Likewise, there is a hadith:
الوتر واجب على كل مسلم
Witr is obligatory upon every Muslim.
In the chain of narration of this hadith is Jabir al-Ju’fi, who is da’if (weak) according to the majority of scholars. And if the hadith were sahih (authentic), or even if it is hypothetically accepted as sahih, an objection and difficulty would then arise: regarding the Friday ghusl too, the Prophet ﷺ said, in Sahih al-Bukhari and Muslim and in Abu Dawud, Nasa’i and others:
غسل يوم الجمعة واجب على كل محتلم
The ghusl of Friday is obligatory upon every adult.
Yet according to the majority of the scholars of the Salaf and the Khalaf and all the jurists, the Friday ghusl is not obligatory but recommended.
There are indications (qara’in) for taking the explicit word “obligatory” to mean recommended, which Imam Al-Shawkani, on behalf of the majority, has related in detail in Nayl al-Awtar.
The very same indications exist for turning the word “obligatory” that has come regarding Witr towards the Sunnah.
The same applies to the hadith بعينه الوتر حق, which has also been cited as evidence that Witr is obligatory, whereas this word is also present regarding the Friday ghusl in Sahih al-Bukhari and Muslim; the Prophet ﷺ said:
حق على كل مسلم أن يغتسل فى كل سبعة أيام يوما
It is a right upon every Muslim to wash on one day in every seven days (the day of Friday).
Imam Al-Baghawi, after relating the hadith الوتر حق in Sharh al-Sunnah, explained the meaning of “right” (haqq): according to the general scholars, what is meant by it is encouragement and urging.
Likewise there are some other narrations in hadith that apparently indicate the obligation of Witr, but because each of them has an indication that turns it away from obligation, the other three Imams and the majority of scholars and jurists have declared the Witr prayer to be an emphasised Sunnah (mu’akkadah) only. And in view of the strength of the majority’s evidences, the two special students of the Imam himself, Imam Abu Yusuf and Imam Muhammad, also hold that Witr is an emphasised Sunnah, as Hafiz Ibn Hajar al-Asqalani has related in Fath al-Bari, the commentary on Sahih al-Bukhari, citing Shaykh Abu Hamid.
This same position of the two companions (Sahibayn) is also reported in Al-Hidayah, the reliable book of the Hanafis themselves.
Those who say it is not obligatory, and their evidences:
According to the three Imams and the majority of scholars and jurists, Witr is not obligatory but a Sunnah, because, first, most of the hadiths that indicate obligation are da’if (weak) in terms of chain of narration.
From some of them what is sought is not established, while many other hadiths indicate non-obligation, some of which have also passed in the context of the virtues of Witr, for example that Witr is not binding like your obligatory prayers, but is a Sunnah of your Prophet ﷺ, and in one hadith he ﷺ declared the sacrifice, the Witr prayer and the Sunnah of Fajr to be voluntary (tatawwu’).
The hadith narrated by Abdullah ibn Umar (may Allah be pleased with him), in the Sihah Sittah and in almost all the books of hadith, also indicates the non-obligation of Witr; in it is:
إن رسول الله صلى الله عليه وسلم اوتر على بعيره
The words of Sahih al-Bukhari are:
يوتر على راحلته
He ﷺ used to pray Witr on his mount.
It is not established from him ﷺ that he performed any obligatory prayer on a mount, other than voluntary prayer.
Likewise in Bukhari and Muslim, when he ﷺ told a Bedouin that five prayers are obligatory in a day and night, he asked whether there is any other (obligatory) prayer upon him besides them, and he ﷺ said:
ولا إلا أن تطوع
No, except that you pray voluntarily (tatawwu’, that is, Sunnah and nafl).
In Abu Dawud, Nasa’i, Ibn Majah, Daraqutni, and in Muwatta’ Imam Malik and Musnad Ahmad, in the hadith of Ubadah ibn al-Samit (may Allah be pleased with him), there is a clear statement that Witr is not obligatory but voluntary (tatawwu’) and an emphasised Sunnah (mu’akkadah).
At this point, keep in mind that according to the Hanafis, fard and wajib are two separate things. The rank of wajib is lower than the fard and higher than the emphasised Sunnah, whereas for others fard and wajib are synonymous words and there is no difference between them. And proving the said difference requires evidence, as Hafiz Ibn Hajar has indicated by saying:
وهذا يتوقف على أن ابن عمر كان يفرق بين الفرض والواجب
This matter depends on whether Ibn Umar (may Allah be pleased with him) used to distinguish between fard and wajib.