Ayesha reported,

The Quraysh were greatly troubled by the case of the Makhzumi woman who had stolen, and they wondered, "Who will speak to the Messenger of Allah ﷺ about her? Who would dare approach him except Usama bin Zayd, the beloved of the Messenger of Allah ﷺ?"So Usama spoke to the Messenger of Allah ﷺ on her behalf.The Messenger of Allah ﷺ said, "Are you interceding concerning one of the prescribed punishments of Allah?"Then he stood up and delivered a sermon, saying, "People, those before you were destroyed because when a noble person among them stole, they let him go, but when a weak person stole, they carried out the punishment on him. By Allah, if Fatimah the daughter of Muhammad ﷺ were to steal, Muhammad would cut off her hand."

Bukhari 6788

Sahih

حدثنا سعيد بن سليمان حدثنا الليث عن ابن شهاب عن عروة

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

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

البخاري 6788صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Bukhari
Book
Legal punishments
Chapter
Disliking intercession in the prescribed punishment if it is brought to the ruler
Numbering
Darussalam 6788
Bukhari 6788