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