I heard it put this way recently: Resentment is taking a bad thing someone did against you and using it against yourself.
“Nothing consumes a man more completely than a passion for resentment’’.— Neitzche