Mishkat al-Masabih 1276
وَعَنْ عَلِيٍّ رَضِيَ اللَّهُ عَنْهُ قَالَ: إِنَّ النَّبِيَّ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ كَانَ يَقُولُ فِي آخِرِ وَتْرِهِ: «اللَّهُمَّ إِنِّي أَعُوذُ بِرِضَاكَ من سخطك وبمعافاتك من عُقُوبَتك وَأَعُوذ بك مِنْكَ لَا أُحْصِي ثَنَاءً عَلَيْكَ أَنْتَ كَمَا أَثْنَيْتَ عَلَى نَفْسِكَ» . رَوَاهُ أَبُو دَاوُدَ وَالتِّرْمِذِيُّ وَالنَّسَائِيُّ وَابْنُ مَاجَهْ
From ʿAli, may Allah be pleased with him, who said: The Prophet ﷺ used to say at the end of his witr: "O Allah, I seek refuge in Your pleasure from Your anger, and in Your pardon from Your punishment, and I seek refuge in You from You. I cannot enumerate praise of You; You are as You have praised Yourself." Reported by Abu Dawud, at-Tirmidhi, an-Nasaʾi and Ibn Majah.