The Prophet ﷺ used to say at the end of his witr prayer, "O Allah, I seek refuge in Your pleasure from Your wrath, and in Your pardon from Your punishment, and I seek refuge in You from You. I cannot enumerate Your praise. You are as You have praised Yourself."
أخبرنا محمد بن عبد الله بن المبارك قال حدثنا سليمان بن حرب وهشام بن عبد الملك قالا حدثنا حماد بن سلمة عن هشام بن عمرو الفزاري عن عبد الرحمن بن الحارث بن هشام
أن النبي ﷺ كان يقول في آخر وتره اللهم إني أعوذ برضاك من سخطك وبمعافاتك من عقوبتك وأعوذ بك منك لا أحصي ثناء عليك أنت كما أثنيت على نفسك
Its isnad is sahih. Abu Dawud transmitted it in the Prayer, chapter on Qunut in Witr, no. 1427, and Tirmidhi in Supplications, chapter on the supplication of Witr, no. 466, from the hadith of Hammad bin Salama with this wording. It also appears in al-Kubra, no. 1444. Tirmidhi said, hasan gharib, and Hakim graded it sahih (1/306), and Dhahabi agreed with him.