An-Nawawi's 40 Hadith, Book 1, Hadith 37 (Nawawi 40 37)

On the authority of Ibn Abbas (may Allah be pleased with him), from the Messenger of Allah (peace and blessings of Allah be upon him), from what he has related from his Lord:

Verily Allah ta’ala has written down the good deeds and the evil deeds, and then explained it and then performed it, then Allah writes it down as one evil deed.” .