Judas was looking for an opportunity to make a quick buck and to gracefully exit from his commitment to Jesus and eleven friends. Satan the master match maker matches the condition of our hearts with a juicy opportunity to get even. He'll even manufacture a plausible alibi for us. If the desire of our hearts is to get even with someone, then Satan will give us that golden opportunity. The opportunity to sin that is presented to us usually matches an area of struggle in our hearts.
Bitter people betray their friends.
Apostle Paul emphasized this great truth to the Corinthian Church. No temptation has seized you except what is common to man. But when you are tempted, he will also provide a way out so that you can stand up under it. If I want to betray someone, I have to climb over God's protective fence to do it. Before we commit the sin, Jesus will makes appeals to our conscience.