Abu Sa'id (al Khudri) reported Allah's Apostle (ﷺ) as saying: Observe Witr prayer before it is morning. Abu Sa'id reported that they (the Prophet's Companions) asked the Apostle of Allah (ﷺ) about Witr (prayer). (In reply to their inquiry) he said: Observe Witr prayer before it is morning.
Hadith Referenceصحيح مسلم / كتاب صلاة المسافرين وقصرها / 754
Abu Sa'id reported that they (some of the Companions) of the Holy Prophet (ﷺ) asked the Apostle of Allah (ﷺ) about Witr. He said: Observe Witr before morning.
Hadith Referenceصحيح مسلم / كتاب صلاة المسافرين وقصرها / 754
´It was narrated that Abu Sa’eed said:` “The Messenger of Allah (ﷺ) said: ‘Pray Witr before morning comes.’”
Maulana Ataullah Sajid
Benefit: It is likely that Muhammad bin Yahya has declared this hadith weak because it apparently contradicts the previous hadith. However, it can be said that in the first hadith, the ruling is mentioned in the case of an excuse (such as sleep or forgetfulness), while in the second hadith, the original ruling is mentioned, which should be acted upon. In this respect, there will be no contradiction.
Source: Commentary on Sunan Ibn Mājah by Mawlānā ‘Atā’ullāh Sājid, Page: 1189