Some time later, he fell in love with a woman in the Valley of Sorek whose name was Delilah. 5 The rulers of the Philistines went to her and said, "See if you can lure him into showing you the secret of his great strength and how we can overpower him so we may tie him up and subdue him. Each one of us will give you eleven hundred shekels [a] of silver."
6 So Delilah said to Samson, "Tell me the secret of your great strength and how you can be tied up and subdued."
7 Samson answered her, "If anyone ties me with seven fresh thongs [b] that have not been dried, I'll become as weak as any other man."
8 Then the rulers of the Philistines brought her seven fresh thongs that had not been dried, and she tied him with them. 9 With men hidden in the room, she called to him, "Samson, the Philistines are upon you!" But he snapped the thongs as easily as a piece of string snaps when it comes close to a flame. So the secret of his strength was not discovered.
10 Then Delilah said to Samson, "You have made a fool of me; you lied to me. Come now, tell me how you can be tied."
11 He said, "If anyone ties me securely with new ropes that have never been used, I'll become as weak as any other man."
12 So Delilah took new ropes and tied him with them. Then, with men hidden in the room, she called to him, "Samson, the Philistines are upon you!" But he snapped the ropes off his arms as if they were threads.
13 Delilah then said to Samson, "Until now, you have been making a fool of me and lying to me. Tell me how you can be tied."
He replied, "If you weave the seven braids of my head into the fabric on the loom and tighten it with the pin, I'll become as weak as any other man." So while he was sleeping, Delilah took the seven braids of his head, wove them into the fabric 14 and [c] tightened it with the pin.
Again she called to him, "Samson, the Philistines are upon you!" He awoke from his sleep and pulled up the pin and the loom, with the fabric.
15 Then she said to him, "How can you say, 'I love you,' when you won't confide in me? This is the third time you have made a fool of me and haven't told me the secret of your great strength." 16 With such nagging she prodded him day after day until he was tired to death.
17 So he told her everything. "No razor has ever been used on my head," he said, "because I have been a Nazirite set apart to God since birth. If my head were shaved, my strength would leave me, and I would become as weak as any other man."
18 When Delilah saw that he had told her everything, she sent word to the rulers of the Philistines, "Come back once more; he has told me everything." So the rulers of the Philistines returned with the silver in their hands.
Having put him to sleep on her lap, she called a man to shave off the seven braids of his hair, and so began to subdue him. [d] And his strength left him. 20 Then she called, "Samson, the Philistines are upon you!"
He awoke from his sleep and thought, "I'll go out as before and shake myself free." But he did not know that the LORD had left him.
21 Then the Philistines seized him, gouged out his eyes and took him down to Gaza. Binding him with bronze shackles, they set him to grinding in the prison. 22 But the hair on his head began to grow again after it had been shaved.
in this story Delilah is like temptation in that even when we say no it will return until a time when we are tired and we give in most of the time but it doesn't have to happen for by being spiritually vigilant we can resist because it is like when we are physically and mentally tired we make big mistakes and aren't as aware it is the same spiritually and the way to stay awake spiritually is to pray for praying is what refuels us spiritually. another thing we can do is described in the following verse (isaiah 53: 5-6)
5 But he was pierced for our transgressions,
he was crushed for our iniquities;
the punishment that brought us peace was upon him,
and by his wounds we are healed.
6 We all, like sheep, have gone astray,
each of us has turned to his own way;
and the LORD has laid on him
the iniquity of us all.
so by focusing on the cross we can also resist the third way is to flee. those three things will help you resist all temptation no matter what it is. for the bible says in (james 1:12-16)
12Blessed is the man who perseveres under trial, because when he has stood the test, he will receive the crown of life that God has promised to those who love him. 13When tempted, no one should say, "God is tempting me." For God cannot be tempted by evil, nor does he tempt anyone; 14but each one is tempted when, by his own evil desire, he is dragged away and enticed. 15Then, after desire has conceived, it gives birth to sin; and sin, when it is full-grown, gives birth to death.
16Don't be deceived, my dear brothers.
and in (john 8: 31-32))
Jesus said, "If you hold to my teaching, you are really my disciples. 32Then you will know the truth, and the truth will set you free."
so do not say hey god most want me to do this if you feel pulled to do something you think might be wrong.