[Machine] That Dawud, the Prophet of Allah ﷺ , used to say when he finished his prayer: "O Allah, reform my religion, which You have made the safeguard of my affairs, and reform my worldly life, in which You have placed my sustenance. O Allah, I seek refuge in Your pleasure from Your wrath, and I seek refuge in Your forgiveness from Your punishment, and I seek refuge in You from You. Nothing can withhold what You have given, nor can anyone give what You have withheld, and the wealth of this world cannot benefit its owner from You." Ka'b al-Ahbar said, and Suhaib informed me, that the Messenger of Allah ﷺ used to recite this supplication after finishing his prayer.
أَنَّ دَاوُدَ نَبِيَّ اللهِ ﷺ كَانَ إِذَا انْصَرَفَ مِنْ صَلَاتِهِ قَالَ «اللهُمَّ أَصْلِحْ لِي دِينِي الَّذِي جَعَلْتَهُ عِصْمَةَ أَمْرِي وَأَصْلِحْ لِي دُنْيَايَ الَّذِي جَعَلْتَ فِيهَا مَعَاشِي اللهُمَّ إِنِّي أَعُوذُ بِرِضَاكَ مِنْ سَخَطِكَ وَأَعُوذُ بِعَفْوِكَ مِنْ نِقْمَتِكَ وَأَعُوذُ بِكَ مِنْكَ لَا مَانِعَ لِمَا أَعْطَيْتَ وَلَا مُعْطِيَ لِمَا مَنَعْتَ وَلَا يَنْفَعُ ذَا الْجَدِّ مِنْكَ جَدُّهُ» قَالَ كَعْبُ الْأَحْبَارِ وَأَخْبَرَنِي صُهَيْبٌ أَنَّ رَسُولَ اللهِ ﷺ كَانَ يَنْصَرِفُ بِهَذَا الدُّعَاءِ مِنْ صَلَاتِهِ