Jami` at-Tirmidhi, Book 40, Hadith 21 (Tirmidhi 2696)

Narrated Ali bin Abu Talib:

that the Prophet (ﷺ) said: "Whoever is penalized (for a crime) then his punishment has been hastened for him in the world, for Allah is more just than to double the punishment upon His slave in the Hereafter. And whoever does a punishable act and then Allah covers it for him and forgives him, then Allah is more kind than to recount something which He has already forgiven."