Hadith on Punishment: No corporal punishment if results in unjust death

Ali reported: A servant girl belonging to the Messenger of Allah, peace and blessings be upon him, committed adultery and he ordered me to whip her. She was enduring post-natal bleeding and I feared that if I whipped her I would kill her. I mentioned that to the Prophet and he said, “You have done well.”

Source: Ṣaḥīḥ Muslim 1705

Grade: Sahih (authentic) according to Muslim

عن علي إِنَّ أَمَةً لِرَسُولِ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ زَنَتْ فَأَمَرَنِي أَنْ أَجْلِدَهَا فَإِذَا هِيَ حَدِيثُ عَهْدٍ بِنِفَاسٍ فَخَشِيتُ إِنْ أَنَا جَلَدْتُهَا أَنْ أَقْتُلَهَا فَذَكَرْتُ ذَلِكَ لِلنَّبِيِّ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ فَقَالَ أَحْسَنْتَ

1705 صحيح مسلم كتاب الحدود باب تأخير الحد عن النفساء