Sahih al-Bukhari 2290
And Abuz Zinad said, narrating from Muhammad bin Hamzah bin Amr Aslami. Muhammad narrated from his father that Hazrat Umar (ra) sent him as a collector of Zakat, and (he learnt there that) a man had had intercourse with his wife's slave-girl. Hamzah took sureties from that man until he came to Hazrat Umar (ra) (and related the whole incident). Hazrat Umar (ra) gave him the punishment of a hundred lashes, because he found the statement of those who related the incident to be true and confirmed it. However, he considered him excused to some extent because he did not know the ruling. And Hazrat Jarir (ra) and Hazrat Ash'ath (ra) said to Hazrat Abdullah bin Mas'ud (ra) concerning the apostates: Make them repent and take sureties for them. So they repented and their tribes stood surety for them. And Hammad said: If a person has become surety for someone and he (for whom he stood surety) dies, nothing will be due from the surety. Hakam said: The surety will have to be paid.
AI-translated by Islam-Today