It was narrated that Ubayy bin Ka'b said:
In the first rak'ah of witr, the Messenger of Allah (ﷺ) used to 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.
أَخْبَرَنَا إِسْحَاقُ بْنُ إِبْرَاهِيمَ، قال: أَنْبَأَنَا عِيسَى بْنُ يُونُسَ، عَنْ سَعِيدِ بْنِ أَبِي عَرُوبَةَ، عَنْ قَتَادَةَ، عَنْ سَعِيدِ بْنِ عَبْدِ الرَّحْمَنِ بْنِ أَبْزَى، عَنْ أَبِيهِ، عَنْ أُبَيِّ بْنِ كَعْبٍ، قال: كَانَ رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ يَقْرَأُ فِي الرَّكْعَةِ الْأُولَى مِنَ الْوِتْرِ بِ سَبِّحِ اسْمَ رَبِّكَ الْأَعْلَى وَفِي الثَّانِيَةِ بِ قُلْ يَا أَيُّهَا الْكَافِرُونَ وَفِي الثَّالِثَةِ بِ قُلْ هُوَ اللَّهُ أَحَدٌ.
ابی بن کعب رضی اللہ عنہ کہتے ہیں رسول اللہ صلی اللہ علیہ وسلم وتر کی پہلی رکعت میں «سبح اسم ربك الأعلى» دوسری رکعت میں «قل يا أيها الكافرون» اور تیسری میں «قل هو اللہ أحد» پڑھتے۔