The Messenger of Allah (ﷺ) used to pray witr with three rak'ahs. In the first he would…

Sunan an-Nasa'i Book 20 Hadith 102

Sunan an-Nasa'i #1699

The Book of Qiyam Al-Lail (The Night Prayer) and Voluntary Prayers During the Day 20:102

It was narrated from Ubayy bin Ka'b that:

The Messenger of Allah (ﷺ) used to pray witr with three rak'ahs. In the first he would recite: "Glorify the Name of Your Lord, the Most High" in the second: "Say: O you disbelievers!", and in the third: "Say: He is Allah, (the) One". And he would say the Qunut before bowing, and when he finished he would say: Subhanal-Malikil-Quddus (Glory be to the Sovereign, the Most Holy) three times, elongating the words the last time.

Chapter: Mentioning the different wordings in the reports from Ubayy bin Ka'b concerning witr

Grade: Sahih (Darussalam)