Al-Ilmam bi-Ahadith al-Ahkam 338
وَعَن أبي بن كَعْب رَضِيَ اللَّهُ عَنْه: " أَن رَسُول الله ﷺ كَانَ يُوتر بِثَلَاث رَكْعَات: يقْرَأ فِي الأولَى: (بسبح اسْم رَبك الْأَعْلَى) ، وَفِي الثَّانِيَة: ب {قل يَا أَيهَا الْكَافِرُونَ} ، وَفِي الثَّالِثَة: ب {قل هُوَ الله أحد} ، ويقنت قبل الرُّكُوع، فَإِذا فرغ قَالَ عِنْد فَرَاغه: سُبْحَانَ الْملك القدوس، ثَلَاث مَرَّات يُطِيل فِي آخِرهنَّ ". أخرجه النَّسَائِيّ (وَغَيره) .
And from Ubayy ibn Kaʿb, may Allah be pleased with him: "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 disbelievers, and in the third Say: He is Allah, One. He would make qunut before bowing. When he finished, he would say at its end: 'Glory be to the King, the Most Holy,' three times, drawing out the last of them." An-Nasaʾi (and others) recorded it.