It is narrated from Sayyiduna Anas bin Malik (may Allah be pleased with him) that a woman came to the Prophet (peace and blessings be upon him) and confessed to adultery while she was pregnant. He (peace and blessings be upon him) postponed it (the carrying out of the prescribed punishment) for a year until she gave birth. Then he (peace and blessings be upon him) gave the order, and her clothes were tied tightly around her; then he (peace and blessings be upon him) ordered that she be stoned; then he led her funeral prayer. A man said to him (peace and blessings be upon him): "Do you pray the funeral prayer over her when she committed adultery and you had her stoned?" The Prophet (peace and blessings be upon him) said: "She has repented with such a repentance that, if it were divided among seventy people of Madinah, it would be accepted from all of them. Have you found any deed better than that she gave up her life for Allah?"
Imam al-Tabarani (may Allah have mercy on him) said: "No one narrated this hadith from Ayyub except Ubaydullah bin Amr al-Raqqi."
Hadith Referenceالمعجم الأوسط / باب العين / 3788
Hadith Takhrij«أخرجه البزار فى «مسنده» برقم: 7559، والطبراني فى «الصغير» برقم: 533»