Mughira bin Shuba dictated to me, in a letter to Muawiya, that the Prophet ﷺ used to say after every obligatory prayer, "There is no god but Allah alone, with no partner. To Him belongs the dominion and to Him belongs all praise, and He is over all things capable. O Allah, none can withhold what You grant, and none can grant what You withhold, and no fortunate person's fortune avails him against You."
أملى علي المغيرة بن شعبة في كتاب إلى معاوية أن النبي ﷺ كان يقول في دبر كل صلاة مكتوبة: لا إله إلا الله وحده لا شريك له، له الملك وله الحمد وهو على كل شيء قدير، اللهم لا مانع لما أعطيت، ولا معطي لما منعت، ولا ينفع ذا الجد منك الجد.
Bukhari narrated it in the Book of Adhan (844), and Muslim in the Book of Mosques (593), both through the route of Warrad, the freedman of Mughira, with the same wording. In another version recorded by Bukhari (6615), Muawiya wrote to Mughira, "Write to me what you heard the Prophet ﷺ say after the prayer." Warrad said, Mughira then dictated it to me, and he mentioned it.Regarding the phrase, "and neither does wealth avail the wealthy against You," Nawawi said, the well-known reading, held by the majority, is with a fatha on the jeem, meaning wealth does not benefit the wealthy person, nor does his good fortune benefit him against You. End of quote.Hasan said, "jadd" means wealth.