The Prophet ﷺ said, "Whoever commits a sin and the prescribed punishment for that sin is carried out on him, it serves as expiation for it."
حدثنا روح حدثنا أسامة بن زيد عن محمد بن المنكدر
عن النبي ﷺ قال من أصاب ذنبا أقيم عليه حد ذلك الذنب فهو كفارته