(6) باب إِذَا اسْتُكْرِهَتِ الْمَرْأَةُ عَلَى الزِّنَا، فَلاَ حَدَّ عَلَيْهَا
Narrated Abu Huraira:
Allah's Messenger (ﷺ) said, "(The Prophet) Abraham migrated with his wife Sarah till he reached a town where there was a king or a tyrant who sent a message, to Abraham, ordering him to send Sarah to him. So when Abraham had sent Sarah, the tyrant got up, intending to do evil with her, but she got up and performed ablution and prayed and said, 'O Allah ! If I have believed in You and in Your Apostle, then do not empower this oppressor over me.' So he (the king) had an epileptic fit and started moving his legs violently. "
Reference: Sahih al-Bukhari 6950
In-book reference: Book 89, Hadith 11
USC-MSA web (English) reference(deprecated numbering scheme): Vol. 9, Book 85, Hadith 82