2 Timothy 3:14. But continue thou in the things which thou hast learned and hast been assured of, knowing of whom thou hast learned them;
What some call providential openings, are often powerful temptations. The heart, in wandering, cries, ‘Here is a way opened before me!’ but, perhaps, not to be trodden, but rejected. – John Newton
Many people blame God for things He never told them to do. They use God as an excuse to do wrong. Just because an opportunity crosses your path does not mean it is of God. It needs to be according to the will of God. If a Christian continues in the things he or she has learned from the man of God, and the word of God, when opportunity comes, they will be able to discern between what is a providential opening and a powerful temptation. The heart is deceitful and we always need to be on guard that we are not deceived by it.
As Christans, we need to make sure we make wise decisions. Listening to your pastor would be a good starting point. He will help to guide and direct you in your life. That is why the Lord gave him to you. If you are not going to be in the word of God regularly, you are open to being deceived. You will begin to call things the will of God for your life that have nothing to do with it. You will start to use God as an excuse to do some worldly thing. That is the state of modern day Christianity. They just want a Christian label with no desire to live for God.
We cannot be caught up in the thinking of the world. We need to be able to discern between right and wrong. We can have assurance that the things we have learned from the word of God will stand up to the test of time. Timothy learned what he knew about God from Paul. He could have confidence in the man of God. We need to have confidence too. When our heart wanders from the straight path, we can turn back to the word of God and the man of God to get back on the straight and narrow.