Hadith 913
`Imran bin Husain (May Allah be pleased with them) reported:
عن عمران بن الحصين رضي الله عنهما أن امراة من جهينة أتت النبي صلى الله عليه وسلمى الله عليه وسلم الله عليه وسلم الله عليه وسلم وهي حبلي من الزنا، فقالت: يا رسول الله، أصبت حداً فأقمه علي ، فدعا رسول الله صلى الله عليه وسلم وليها، فقال: "أحسن إليها فإذا وضعت فأتني بها” ففعل، فأمر بها النبي صلى الله عليه وسلم الله عليه وسلمى الله عليه وسلم الله عليه وسلم ، فشدت عليها ثيابها، ثم أمر بها فرجمت، ثم صلى عليها" ((رواه مسلم)).
A woman belonging to the Juhainah tribe came to the Messenger of Allah (ﷺ) after having conceived from Zina. She submitted: "O Messenger of Allah! I am liable to Hadd (punishment ordained by Allah), so execute it.'' The Messenger of Allah (ﷺ) called her guardian and said, "Treat her well and bring her to me after delivery.'' He acted accordingly. Then the Messenger of Allah (ﷺ) commanded to tie her clothes firmly around her and then stoned her to death. He (ﷺ) then offered funeral prayer for her. [Muslim].
In plain words
A woman came seeking to be purified of a grave sin she confessed, and the Prophet ordered that she be treated well and given time before the penalty was carried out, then he prayed over her, showing kindness even toward one facing punishment.
Reference : Riyad as-Salihin 913 In-book reference : Book 6, Hadith 20