Ali bin Abu Talib reported,

The Prophet ﷺ used to say in his witr prayer, "O Allah, I seek refuge in Your pleasure from Your displeasure, I seek refuge 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."He said, this is a hasan gharib hadith from the narration of Ali. We know it only through this route, from the narration of Hammad bin Salama.

Tirmidhi 3566

Sahih

حدثنا أحمد بن منيع حدثنا يزيد بن هارون أخبرنا حماد بن سلمة عن هشام بن عمرو الفزاري عن عبد الرحمن بن الحارث بن هشام

عن علي بن أبي طالب

أن النبي ﷺ كان يقول في وتره اللهم إني أعوذ برضاك من سخطك وأعوذ بمعافاتك من عقوبتك وأعوذ بك منك لا أحصي ثناء عليك أنت كما أثنيت على نفسك قال هذا حديث حسن غريب من حديث علي لا نعرفه إلا من هذا الوجه من حديث حماد بن سلمة

الترمذي 3566صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami Tirmidhi
Book
Supplications
Chapter
Supplication of Witr
Numbering
Darussalam 3566
Tirmidhi 3566