Riyad as-Salihin, Book 1, Hadith 22 (In-Book)

Imran bin Al-Husain Al-Khuza'i (May Allah be pleased with him) reported: A woman from the tribe Juhainah came to Messenger of Allah while she was pregnant from (Zina) adultery and said to him: "O Messenger of Allah! I have committed an offense liable to Hadd (prescribed punishment), so exact the execution of the sentence." Messenger of Allah called her guardian and said to him, "Treat her kindly. Bring her to me after the delivery of the child." That man complied with the orders. At last the Prophet commanded to carry out the sentence. Her clothes were secured around her and she was stoned to death. The Prophet led her funeral prayers. 'Umar submitted: "O Messenger of Allah! She committed Zina and you have performed funeral prayer for her?" He replied, "Verily, she made repentance which would suffice for seventy of the people of Al-Madinah if it is divided among them. Can there be any higher degree of repentance than that she sacrificed her life voluntarily to win the Pleasure of Allah, the Exalted?".[Muslim].

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

sunnah.com