Abu Marwan reported,

Kaab swore to him by Allah who split the sea for Musa, "We find in the Torah that Dawud, the prophet of Allah, when he finished his prayer, would say, 'O Allah, set right for me my religion, which You have made the safeguard of my affairs. Set right for me my worldly life, in which You have placed my livelihood. O Allah, I seek refuge in Your pleasure from Your displeasure, and I seek refuge in Your pardon from Your punishment, and I seek refuge in You from You. None can withhold what You grant, and none can grant what You withhold, and the fortune of the fortunate cannot avail him against You.'"He said, "Kaab told me that Suhayb related to him that Muhammad ﷺ used to say these words upon finishing his prayer."

Azami 11048

Hasan

عن أبي مروان

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

الأعظمي 11048حسن
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Supplications, remembrances, and prayer upon the chosen Prophet ﷺ
Chapter
Supplications of adhan and prayer, and what is related to them
Section
Remembrances after the obligatory prayers and at their conclusions
Numbering
Jami al-Kamil 11048 (2nd edition)
Azami 11048