Ubayy bin Kaab reported,

The Messenger of Allah ﷺ used to recite in the Witr "Glorify the name of your Lord, the Most High" [Ala 87:1], in the second rakat "Say, you disbelievers" [Kafirun 109:1], and in the third "Say, He is Allah, the One" [Ikhlas 112:1]. He would give the closing salutation only at the end of them, and then, after the salutation, he would say three times, "Glory be to the King, the Most Holy."

Azami 2818

Sahih

عن أبي بن كعب قال

كان رسول الله ﷺ يقرأ في الوتر ب {سبح اسم ربك الأعلى}. وفي الركعة الثانية ب {قل يأيها الكفرون} وفي الثالثة ب {قل هو الله أحد} ولا يسلم إلا في آخرهن، ويقول: يعني بعد التسليم: سبحان الملك القدوس ثلاثا.

الأعظمي 2818صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Prayer
Chapter
Witr prayer
Section
Witr of the Prophet ﷺ with three rakahs
Numbering
Jami al-Kamil 2818 (2nd edition)
Azami 2818