The Prophet (peace and blessings be upon him) said:
"Whoever commits a sin and the prescribed punishment (hadd) for that sin is carried out on him, that is its expiation."
Hadith Referenceصحیح الجامع الصغیر / حرف الميم / 6039
Hadith Gradingالألبانی:صحيح
Hadith Takhrij[حم الضياء] عن خزيمة بن ثابت. الصحيحة ٢٣١٧.