Abu Umamah bin Sahl bin Hunayf narrates from his father, who said: A man among us fell ill until he was nothing but skin and bone. A slave girl came to him to visit him in his illness, and he committed fornication with her. He said to those visiting him: Go to the Messenger of Allah (peace and blessings be upon him); I have committed an unlawful act with a woman, so let him (peace and blessings be upon him) carry out the prescribed punishment upon me so that he may purify me. The people mentioned this to the Messenger of Allah (peace and blessings be upon him), then said: By Allah! If he were carried to you, his bones would break apart, and if he were flogged, he would die. He (peace and blessings be upon him) said: "Take for him a date cluster with a hundred twigs and strike him with it a single time."
Hadith Referenceالمعجم الكبير للطبراني / باب السين / 5566