[Machine] The Messenger of Allah, peace be upon him, said: "Whoever commits a sin that Allah has forbidden and then the prescribed punishment is carried out on him, that sin is expiated from him."
أَنَّ رَسُولَ اللَّهِ ﷺ قَالَ «أَيُّمَا عَبْدٍ أَصَابَ شَيْئًا مِمَّا نَهَى اللَّهُ عَنْهُ ثُمَّ أُقِيمَ عَلَيْهِ حَدُّهُ كُفِّرَ عَنْهُ ذَلِكَ الذَّنْبُ»