Abu Marwan reported,

Kaab swore to him by Allah, who parted 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 a safeguard for me, and set right for me my worldly life, in which You have placed my livelihood. O Allah, I seek refuge in Your pleasure from Your wrath, 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 no possessor of fortune benefits from his fortune against You.'"He said, "Kaab also told me that Suhayb related to him that Muhammad ﷺ used to say these words when he finished his prayer."

Azami 2230

Hasan

عن أبي مروان

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

الأعظمي 2230حسن
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Prayer
Chapter
Tashahhud and salam
Section
Adhkar after the obligatory prayers
Numbering
Jami al-Kamil 2230 (2nd edition)
Azami 2230