ספר המדות, Sin Sin · ב
Sefer HaMiddot 1823
ב. מִי שֶׁעוֹבֵר עֲבֵרָה לְהַכְעִיס, לְסוֹף שֶׁנִּתְבַּזֶּה בְּעֵינֵי בְּנֵי אָדָם וְהוּא כּוֹעֵס עֲלֵיהֶם.
2. Someone who commits a sin in order to anger (G-d, not for self gratification): In the end, he will be derided in the eyes of others, and he will be enraged at them.