It was narrated from Ubayy bin Ka’b that the Messenger of Allah (ﷺ) used to pray Witr and he would recite Qunut before Ruku’.
Sunan Ibn Majah Book 5, Hadith 380