The Lord told us to repent of our sin. When we sin, we bring trouble into our lives. It’s best to resist the urge to sin.
1 Corinthians 10:13
No temptation has overtaken you except such as is common to man; but God is faithful, who will not allow you to be tempted beyond what you are able, but with the temptation will also make the way of escape, that you may be able to bear it.
James 1:12-14
New King James Version (NKJV)
12 Blessed is the man who endures temptation; for when he has been approved, he will receive the crown of life which the Lord has promised to those who love Him. 13 Let no one say when he is tempted, “I am tempted by God”; for God cannot be tempted by evil, nor does He Himself tempt anyone. 14 But each one is tempted when he is drawn away by his own desires and enticed.
however it is good to remember these verses too:
Romans 8:26-28
New King James Version (NKJV)
26 Likewise the Spirit also helps in our weaknesses. For we do not know what we should pray for as we ought, but the Spirit Himself makes intercession for us[a] with groanings which cannot be uttered. 27 Now He who searches the hearts knows what the mind of the Spirit is, because He makes intercession for the saints according to the will of God.
28 And we know that all things work together for good to those who love God, to those who are the called according to His purpose.
Romans 8:32-37
New King James Version (NKJV)
32 He who did not spare His own Son, but delivered Him up for us all, how shall He not with Him also freely give us all things? 33 Who shall bring a charge against God’s elect? It is God who justifies. 34 Who is he who condemns? It is Christ who died, and furthermore is also risen, who is even at the right hand of God, who also makes intercession for us. 35 Who shall separate us from the love of Christ? Shall tribulation, or distress, or persecution, or famine, or nakedness, or peril, or sword? 36 As it is written:
“ For Your sake we are killed all day long;
We are accounted as sheep for the slaughter.”[a]
37 Yet in all these things we are more than conquerors through Him who loved us.