Work at your relationship with God. God can and will answer prayers of the unsaved, just because He loves people and wants to bless. He is sovereign and can bless whoever He wants to, however there is no promise or guarantee that He will. If you want your prayers to be effective, you must be in a relationship with the one who has all the answers. We know that we have to pray according to God’s will and we can never know His will without intimacy with Him.
Acts 19:13-17 (NIV), “Some Jews who went around driving out evil spirits tried to invoke the name of the Lord Jesus over those who were demon-possessed. They would say, “In the name of the Jesus whom Paul preaches, I command you to come out.” Seven sons of Sceva, a Jewish chief priest, were doing this. One day the evil spirit answered them, “Jesus I know, and Paul I know about, but who are you?” Then the man who had the evil spirit jumped on them and overpowered them all. He gave them such a beating that they ran out of the house naked and bleeding.”
This is a great example of how important it is to not just use the name of Jesus, but know Him as a person. These foolish sons of Sceva had heard of Jesus, but didn’t know Him at all.
In the Passion Translation, this was written in the study notes on these verses in Acts,
“True authority comes from relationship with Jesus Christ, not just using formulas or techniques. Evil spirits know about the depth of our relationship with God.”
Evil spirits know who they have to obey! Make sure you are in a right relationship with Jesus, because that is where our authority comes from. These Jews were using the name of Jesus as a technique, lacking all the power and authority.