Anas bin Malik reported,

There was an orphan girl in the care of Umm Sulaym, who was the mother of Anas. The Messenger of Allah ﷺ saw the orphan girl and said, "Is that you? You have grown so big. May your years not increase."The orphan girl returned to Umm Sulaym in tears.Umm Sulaym asked, "What is wrong with you, my dear daughter?"The girl replied, "The Prophet of Allah ﷺ has prayed against me that my years should never increase," or she said, "that my lifespan should not grow."Umm Sulaym hurried out, adjusting her head covering as she went, until she met the Messenger of Allah ﷺ.The Messenger of Allah ﷺ said to her, "What is the matter with you, Umm Sulaym?"She said, "Prophet of Allah, have you invoked against my orphan girl?"He asked, "What do you mean, Umm Sulaym?"She said, "She claims that you prayed that her years should not increase and that her lifespan should not grow."The Messenger of Allah ﷺ laughed and then said, "Umm Sulaym, do you not know the condition I have stipulated with my Lord? I stipulated with my Lord, saying, 'I am only a human being. I am pleased as humans are pleased, and I become angry as humans become angry. So whoever among my Ummah I invoke against with a supplication they do not deserve, make it for them a purification, a means of cleansing, and a means of drawing closer to You on the Day of Resurrection.'"

Azami 784

Sahih

عن أنس بن مالك قال

كانت عند أم سليم يتيمة- وهي أم أنس- فرأى رسول الله ﷺ اليتيمة. فقال: آنت هيه؟ لقد كبرت، لا كبر سنك. فرجعت اليتيمة إلى أم سليم تبكي. فقالت أم سليم: مالك؟ يا بنية! قالت الجارية: دعا علي نبي الله ﷺ أن لا يكبر سني أبدا. أو قالت قرني. فخرجت أم سليم مستعجلة تلوث خمارها. حتى لقيت رسول الله ﷺ. فقال لها رسول الله ﷺ مالك؟ يا أم سليم! فقالت: يا نبي الله، أدعوت على يتيمتي؟ قال: وما ذاك يا أم سليم؟ قالت: زعمت أنك دعوت أن لا يكبر سنها ولا يكبر قرنها. قال: فضحك رسول الله ﷺ. ثم قال: يا أم سليم، أما تعلمين أن شرطي على ربي، أني اشترطت على ربي فقلت: إنما أنا بشر. أرضى كما يرضى البشر، وأغضب كما يغضب البشر، فأيما أحد دعوت عليه، من أمتي بدعوة ليس لها بأهل، أن تجعلها له طهورا وزكاة وقربة يقربه بها منه يوم القيامة.

الأعظمي 784صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Faith
Chapter
Faith in the Prophet ﷺ
Section
Humanity of the Messenger ﷺ
Numbering
Jami al-Kamil 784 (2nd edition)
Azami 784