It is narrated from Sayyiduna Abdullah bin Umar (may Allah be pleased with them both) that the Messenger of Allah (peace and blessings be upon him) said: "Any man who is punished for a sin, Allah Almighty makes that punishment an expiation for the sin he committed."
Hadith Referenceالمعجم الأوسط / باب الميم / 8443
Hadith Gradingمحدثین:إسناده ضعيف جدًّا، فيه ياسين الزيات متروك
Hadith Takhrij«قال الهيثمي: وفيه ياسين الزيات وهو متروك «مجمع الزوائد ومنبع الفوائد، ج 6، ص 265»»