Resentment is anger that stays and takes root. Hebrews says see to it that no root of bitterness springs up and troubles many. Paul says be angry and do not sin, and do not let the sun go down on your wrath. Vengeance belongs to the Lord. Forgiving a person and pretending you were not wronged are different acts.
Ask Bible Copilot about this topic
What was at Cain's door?
Cain is very angry, and his face falls, because the Lord had no regard for his offering. The Lord asks why. If Cain does well, will he not be accepted? If he does not do well, sin lies at the door. Its desire is for him, and he must rule over it. The next scene is the murder. Anger that is nursed is not a private mood in this chapter. God warns Cain while the anger is still on his face, before the field. Resentment here is the open door.
King James Version, Genesis 4:5-7.
But unto Cain and to his offering he had not respect. And Cain was very wroth, and his countenance fell. And the LORD said unto Cain, Why art thou wroth? and why is thy countenance fallen? If thou doest well, shalt thou not be accepted? and if thou doest not well, sin lieth at the door. And unto thee shall be his desire, and thou shalt rule over him.
How long may wrath stay?
Paul says be angry, and sin not. He does not say anger is imaginary or always wicked. He says do not sin in it. Then he sets a clock: do not let the sun go down on your wrath. Do not give place to the devil. Wrath that is given a bed becomes a foothold. The command assumes a person can be angry and still refuse to let it lodge. Putting it away is named a few verses later, with bitterness, clamor, and evil speaking. The forgiveness pattern in verse 32 is handled on the forgiveness page. This paragraph is about the anger that stays.
King James Version, Ephesians 4:26-27.
Be ye angry, and sin not: let not the sun go down upon your wrath: Neither give place to the devil.
King James Version, Ephesians 4:31.
Let all bitterness, and wrath, and anger, and clamour, and evil speaking, be put away from you, with all malice:
What does a root of bitterness do to a group?
Hebrews tells the church to pursue peace with all and holiness, without which no one will see the Lord. Then: look diligently, lest anyone fail of the grace of God, lest any root of bitterness spring up and trouble you, and thereby many are defiled. The root is a church problem. One person's settled bitterness troubles many and defiles them. The text is not a tip for a calmer personality. It is a warning that hidden resentment spreads.
King James Version, Hebrews 12:14-15.
Follow peace with all men, and holiness, without which no man shall see the Lord: Looking diligently lest any man fail of the grace of God; lest any root of bitterness springing up trouble you, and thereby many be defiled;
Whose right is vengeance?
Paul tells the church not to repay anyone evil for evil. If it is possible, live at peace. Do not avenge yourselves. Give place to wrath, for it is written, Vengeance is mine, I will repay, says the Lord. The next lines tell them to feed an enemy and give him drink, and not to be overcome by evil, but to overcome evil with good. The resentment that demands payment is told to put the case down. The Lord claims the repayment. Feeding the enemy is not the same as calling the evil good. It is the refusal to be the one who squares it.
King James Version, Romans 12:17-21.
Recompense to no man evil for evil. Provide things honest in the sight of all men. If it be possible, as much as lieth in you, live peaceably with all men. Dearly beloved, avenge not yourselves, but rather give place unto wrath: for it is written, Vengeance is mine; I will repay, saith the Lord. Therefore if thine enemy hunger, feed him; if he thirst, give him drink: for in so doing thou shalt heap coals of fire on his head. Be not overcome of evil, but overcome evil with good.
How pardon works, which is the gospel ground under this command, is on what the Bible says about forgiveness and on forgiveness verses, with the text. Another reading of resentment is what God says about resentment.