The Messenger of Allah ﷺ, when he said, "Allah hears whoever praises Him," would say, "Our Lord, to You belongs all praise, filling the heavens, filling the earth, and filling whatever else You will. Worthy of all praise and glory, the truest words a servant has ever spoken, and we are all Your servants. None can withhold what You grant, and none can grant what You withhold, and no one of fortune can benefit from his fortune against You."
أخبرني عمرو بن هشام أبو أمية الحراني قال حدثنا مخلد عن سعيد بن عبد العزيز عن عطية بن قيس عن قزعة بن يحيى
أن رسول الله ﷺ كان يقول حين يقول سمع الله لمن حمده ربنا لك الحمد ملء السموات وملء الأرض وملء ما شئت من شيء بعد أهل الثناء والمجد خير ما قال العبد وكلنا لك عبد لا مانع لما أعطيت ولا ينفع ذا الجد منك الجد
Sunni Muslim reported it in the Book of Prayer, chapter on what to say when raising the head from ruku, hadith no. 477, from the hadith of Saeed bin Abdul-Aziz through this chain, and it is also in Kubra, hadith no. 655.