Abu Umama bin Sahl reported,

Some men from among the companions of the Messenger of Allah ﷺ of the Ansar informed me that one of them fell ill until he became severely emaciated, his skin clinging to his bones. A young slave girl belonging to one of them came in to visit him, and he was aroused by her and had relations with her.When some men from his people came in to visit him, he told them what had happened and said, "Seek a ruling for me from the Messenger of Allah ﷺ, for I have had relations with a slave girl who came in to me."They mentioned this to the Messenger of Allah ﷺ and said, "Messenger of Allah, we have never seen anyone in such a state of suffering as he is in. If we were to carry him to you, his bones would fall apart. He is nothing but skin on bone."So the Messenger of Allah ﷺ ordered them to take a cluster of one hundred date palm twigs and strike him with it a single blow.

Azami 6972

Sahih

عن أبي أمامة بن سهل بن حنيف قال

أخبرني بعض أصحاب رسول الله ﷺ من الأنصار أنه اشتكى رجل منهم حتى أضني فعاد جلده على عظم. فدخلت جارية لبعضهم، فهش إليها، فوقع عليها. فلما دخل عليه رجال من قومه يعودونه أخبرهم بذلك. وقال: استفتوا لي رسول الله ﷺ، فإني قد وقعت على جارية دخلت علي. فذكروا ذلك لرسول الله ﷺ فقالوا: يا رسول الله ما رأينا بأحد من الناس من الضر مثل الذي هو به، لو حملنا إليك لتفسخت عظامه ما هو إلا جلد على عظم. فأمرهم رسول الله ﷺ بمائة شمراخ، فيضربونه ضربة واحدة.

الأعظمي 6972صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Legal punishments
Chapter
Hadd of zina
Section
Carrying out the legal punishment on the sick
Numbering
Jami al-Kamil 6972 (2nd edition)
Azami 6972