Caution: Translations of Quran and Ḥadīth may lead to possible misapplications and misinterpretations. This site is intended for students of sacred knowledge that are proficient in comprehending classical Arabic and have a strong foundation in Islamic sciences. Also note that religious injunctions rely on several aspects beyond what one may glean through reading individual aḥādīth.
abudawud:1430ʿUthmān b. Abū Shaybah > Muḥammad b. Abū ʿUbaydah from my father > al-Aʿmash > Ṭalḥah al-Ayāmī > Dhar > Saʿīd b. ʿAbd al-Raḥman b. Abzá from his father > Ubay b. Kaʿb

When the Messenger of Allah ﷺ offered salutation in the witr prayer, he said: Glorify be to the king most holy.  

أبو داود:١٤٣٠حَدَّثَنَا عُثْمَانُ بْنُ أَبِي شَيْبَةَ حَدَّثَنَا مُحَمَّدُ بْنُ أَبِي عُبَيْدَةَ حَدَّثَنَا أَبِي عَنِ الأَعْمَشِ عَنْ طَلْحَةَ الأَيَامِيِّ عَنْ ذَرٍّ عَنْ سَعِيدِ بْنِ عَبْدِ الرَّحْمَنِ بْنِ أَبْزَى عَنْ أَبِيهِ عَنْ أُبَىِّ بْنِ كَعْبٍ قَالَ

كَانَ رَسُولُ اللَّهِ ﷺ إِذَا سَلَّمَ فِي الْوِتْرِ قَالَ سُبْحَانَ الْمَلِكِ الْقُدُّوسِ  


See similar narrations below:

Collected by Bayhaqī, Suyūṭī
bayhaqi:4870Abū ʿAlī al-Rūdhbārī > Abū Bakr b. Dāsah > Abū Dāwud > ʿUthmān b. Abū Shaybah > Muḥammad b. Abū ʿUbaydah from my father > al-Aʿmash > Ṭalḥah al-Ayāmī > Dhar > Saʿīd b. ʿAbd al-Raḥman b. Abzá from his father > Ubī b. Kaʿb

When the Messenger of Allah ﷺ offered salutation in the witr prayer, he said: Glorify be to the king most holy. (Using translation from Abū Dāʾūd 1430)   

البيهقي:٤٨٧٠وَأَخْبَرَنَا أَبُو عَلِيٍّ الرُّوذْبَارِيُّ أنبأ أَبُو بَكْرِ بْنُ دَاسَةَ ثنا أَبُو دَاوُدَ أنبأ عُثْمَانُ بْنُ أَبِي شَيْبَةَ ثنا مُحَمَّدُ بْنُ أَبِي عُبَيْدَةَ ثنا أَبِي عَنِ الْأَعْمَشِ عَنْ طَلْحَةَ الْأَيَامِيِّ عَنْ ذَرٍّ عَنْ سَعِيدِ بْنِ عَبْدِ الرَّحْمَنِ بْنِ أَبْزَى عَنْ أَبِيهِ عَنْ أُبِيِّ بْنِ كَعْبٍ قَالَ

كَانَ رَسُولُ اللهِ ﷺ إِذَا سَلَّمَ فِي الْوِتْرِ قَالَ سُبْحَانَ الْمَلِكِ الْقُدُّوسِ