Abu Hurairah reported,

The Prophet ﷺ said, "Ibrahim عليه السلام migrated with Sarah and entered a town in which there was a king, or a tyrant from among the tyrants. It was said to him, 'Ibrahim has entered with a woman who is among the most beautiful of people.' So he sent for him, asking, 'Ibrahim, who is this woman with you?'Ibrahim replied, 'She is my sister.'Then Ibrahim returned to her and said, 'Do not contradict what I have said, for I have told them that you are my sister. By Allah, there is no believer on earth except me and you.'Then he sent her to him. When the king rose toward her, she stood up, performed ablution, and prayed, saying, 'O Allah, if I have believed in You and Your Messenger and have guarded my chastity for none but my husband, then do not give this disbeliever power over me.' He was then seized with a choking fit until he kicked with his leg."Araj said that Abu Salama bin Abdul-Rahman said that Abu Hurairah said, "She said, 'O Allah, if he dies, it will be said that she killed him.' So he was released. Then he rose toward her again, and she stood up, performed ablution, and prayed, saying, 'O Allah, if I have believed in You and Your Messenger and have guarded my chastity for none but my husband, then do not give this disbeliever power over me.' He was again seized with a choking fit until he kicked with his leg."Abdul-Rahman said that Abu Salama said that Abu Hurairah said, "She said, 'O Allah, if he dies, it will be said that she killed him.' So he was released, either the second or the third time, and he said, 'By Allah, you have sent me nothing but a devil. Return her to Ibrahim, and give her Hajar.'So she returned to Ibrahim عليه السلام and said, 'Did you realize that Allah humiliated the disbeliever and gave us a maidservant?'"

Azami 8376

Sahih

عن أبي هريرة قال

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

الأعظمي 8376صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Stories of the prophets
Chapter
Ibrahim and his sons, peace be upon them
Section
Migration of Ibrahim عليه السلام to Egypt
Numbering
Jami al-Kamil 8376 (2nd edition)
Azami 8376