Mughira wrote to Muawiya that whenever the Messenger of Allah ﷺ finished his prayer with the salutation, he would say, "There is no god but Allah alone, with no partner. To Him belongs the dominion, and to Him belongs all praise, and He is capable of all things. O Allah, none can withhold what You grant, and none can grant what You withhold, and no fortune can benefit the one of fortune against You."
حدثنا محمد بن جعفر حدثنا شعبة عن منصور قال سمعت المسيب بن رافع يحدث
أن المغيرة كتب إلى معاوية أن رسول الله ﷺ كان إذا سلم قال لا إله إلا الله وحده لا شريك له له الملك وله الحمد وهو على كل شيء قدير اللهم لا مانع لما أعطيت ولا معطي لما منعت ولا ينفع ذا الجد منك الجد
Its isnad is sahih, and Musayab bin Rafi is trustworthy, his hadith appears in the collections of the Group. The hadith was previously mentioned at 18057.