Luke 22:40: And when he was at the place, he said unto them, pray that ye enter not into temptation.
To be free from temptation, one has to pray. Temptations can be in any form and nature. It need not necessarily be just one form or pattern. Jesus always prayed. Here in this portion of the scripture, Jesus tells His disciples to pray so that they will not fall into temptation. After a few hours, He was betrayed and crucified.
Prayer is a strong weapon against our enemies. Prayer gives us victory against every challenges and situations. We approach the throne room of God with grace every time we pray. Temptations can never be overcome with our own strength or efforts. Of course, we should make a conscious effort to stay away from it, but it can be possible only by going down on our knees before God. Jesus wanted His disciples to stay firm in their faith and not to give it up or give up on Him. As long as Jesus was on this earth, He prayed to God, the Father, everyday. He prayed or spoke to His Father everyday in spite of His busy schedule.
Cultivate this healthy habit of praying so that we will not fall into temptation. Commune with God everyday. Read His word and meditate upon it everyday. Stay in touch with Him every single minute of the day. Prayer can keep all kinds of distractions and temptations away and keep us safe and sound until the day ends.