It is narrated from Abu Marwan (the father of Ata') that Ka'b (al-Ahbar) swore before him by the One who split the sea for Sayyiduna Musa (peace be upon him) that they find written in the Torah that the Prophet of Allah, Sayyiduna Dawud (peace be upon him), used to say these words on finishing the prayer; and Ka'b also said: Sayyiduna Suhayb (may Allah be pleased with him) narrated to me that the Messenger of Allah (peace and blessings be upon him) also used to say these same words on finishing the prayer: "Allahumma aslih li dini alladhi ja'altahu li 'ismata amri, wa aslih li dunyaya allati ja'alta fiha ma'ashi; Allahumma inni a'udhu biridaka min sakhatik, wa bi'afwika min niqmatik, wa a'udhu bika minka; Allahumma la mani'a lima a'tayt, wa la mu'tiya lima mana't, wa la yanfa'u dha al-jaddi minka al-jadd" (O Allah, set right for me my religion, which You have made the safeguard of my affairs, and set right for me my world, in which You have placed my livelihood; O Allah, I seek refuge in Your pleasure from Your displeasure, and in Your pardon from Your punishment, and I seek refuge with You from You; O Allah, none can withhold what You give, and none can give what You withhold, and the wealth of a wealthy man cannot benefit him against You or save him from Your punishment). Imam Ibn Hibban recorded this report in his Sahih, and it also has a corroborating report (shahid) from the hadith of Sayyiduna Mu'awiyah bin Abi Sufyan (may Allah be pleased with them both), which Abu Dawud al-Tayalisi, Musaddad and Ahmad bin Mani' recorded, and it has already been mentioned in the Book of Knowledge.
Hadith Referenceإتحاف الخيرة المهرة بزوائد المسانيد العشرة / كتاب افتتاح الصلاة / 1405
Hadith Gradingمحدثین:أخرجه ابن حبان في صحيحه
Hadith Takhrij«أخرجه سنن النسائي برقم: 1346، وأخرجه مسند البزار برقم: 2092، وأخرجه صحيح ابن خزيمة برقم: 745، وأخرجه المعجم الكبير للطبراني برقم: 7298، وأخرجه صحيح ابن حبان برقم: 2026، وأخرجه الأحاديث المختارة برقم: 59، وأخرجه السنن الكبرى للنسائي برقم: 1370، 10190، وأخرجه الأوسط في السنن والإجماع والاختلاف برقم: 1548»