When you pray, are you expecting God to answer? Or, are you praying just to be praying? In Act 12: 1-17, you will see that although they prayed earnestly for Peter's release from prison, they were not expectig God to answer.
"James is killed and Peter is imprisoned. About that time King Herod Agrippa began to persecute some believers in the church. He had the apostle James (John’s brother) killed with a sword. When Herod saw how much this pleased the Jewish people, he also arrested Peter. Then he imprisoned him, placing him under the guard of four squads of four soldiers each. Herod intended to bring Peter out for public trial after the Passover. But while Peter was in prison, the church prayed very earnestly for him.
The night before Peter was to be placed on trial, he was asleep, fastened with two chains between two soldiers. Others stood guard at the prison gate. Suddenly, there was a bright light in the cell, and an angel of the Lord stood before Peter. The angel struck him on the side to awaken him and said, “Quick! Get up!” And the chains fell off his wrists. Then the angel told him, “Get dressed and put on your sandals.” And he did. “Now put on your coat and follow me,” the angel ordered".
So Peter left the cell, following the angel. But all the time he thought it was a vision. He didn’t realize it was actually happening. They passed the first and second guard posts and came to the iron gate leading to the city, and this opened for them all by itself. So they passed through and started walking down the street, and then the angel suddenly left him.
Peter finally came to his senses. “It’s really true!” he said. “The Lord has sent his angel and saved me from Herod and from what the Jewish leaders had planned to do to me!”
When he realized this, he went to the home of Mary, the mother of John Mark, where many were gathered for prayer. He knocked at the door in the gate, and a servant girl named Rhoda came to open it. When she recognized Peter’s voice, she was so overjoyed that, instead of opening the door, she ran back inside and told everyone, “Peter is standing at the door!”
“You’re out of your mind!” they said. When she insisted, they decided, “It must be his angel.” Meanwhile, Peter continued knocking. When they finally opened the door and saw him, they were amazed. He motioned for them to quiet down and told them how the Lord had led him out of prison".
What about you, are you amazed too when God answers your prayer? If so, where is your faith and confidence in God answering your prayer? 1 John 5:14 says "And this is the confidence that we have in him that if we ask anything according to his will (that is consistent with a Godly life) he hears us, and if we know that he hears us whatsoever we ask, we know that we have the petition that we desired of him.