Ayesha reported,

The Messenger of Allah ﷺ said, "I can tell when you are angry with me and when you are pleased with me."She said, "I asked, 'How can you tell that, Messenger of Allah?'"He replied, "When you are pleased, you say, 'Yes, by the Lord of Muhammad,' and when you are upset, you say, 'No, by the Lord of Ibrahim.'"She said, "I replied, 'That is true. I avoid only your name.'"

Bukhari 6078

Sahih

حدثنا محمد أخبرنا عبدة عن هشام بن عروة عن أبيه

عن عائشة رضي الله عنها قالت

قال رسول الله ﷺ إني لأعرف غضبك ورضاك قالت قلت وكيف تعرف ذاك يا رسول الله قال إنك إذا كنت راضية قلت بلى ورب محمد وإذا كنت ساخطة قلت لا ورب إبراهيم قالت قلت أجل لست أهاجر إلا اسمك

البخاري 6078صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Bukhari
Book
Manners
Chapter
What is permissible of shunning one who disobeys
Numbering
Darussalam 6078
Bukhari 6078