Zayd bin Thabit reported,

We were commanded to glorify Allah after every prayer thirty-three times, to praise Him thirty-three times, and to magnify Him thirty-four times.Then a man from the Ansar saw in a dream someone who asked him, "Did the Messenger of Allah ﷺ command you to glorify Allah thirty-three times after every prayer, to praise Allah thirty-three times, and to magnify Him thirty-four times?"He replied, "Yes."The figure said, "Make them twenty-five each, and add the declaration of Allah's oneness along with them."In the morning he came to the Prophet ﷺ and told him about it, and the Prophet ﷺ said, "Do so."

Azami 11057

Sahih

عن زيد بن ثابت قال

أمرنا أن نسبح دبر كل صلاة ثلاثا وثلاثين، وتحمده ثلاثا وثلاثين، وتكبره أربعا وثلاثين، قال: فرأى رجل من الأنصار في المنام فقال: أمركم رسول الله ﷺ أن تسبحوا في دبر كل صلاة ثلاثا وثلاثين، وتحمدوا الله ثلاثا وثلاثين، وتكبروا أربعا وثلاثين؛ قال: نعم، قال: فاجعلوا خمسا وعشرين، واجعلوا التهليل معهن، فغدا على النبي ﷺ فحدثه فقال: افعلوا.

الأعظمي 11057صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Supplications, remembrances, and prayer upon the chosen Prophet ﷺ
Chapter
Supplications of adhan and prayer, and what is related to them
Section
Remembrances after the obligatory prayers and at their conclusions
Numbering
Jami al-Kamil 11057 (2nd edition)
Azami 11057