There's a difference between hearing and answering. God hears all our prayers, but he doesn't always give us what we ask for. Also, he answers all our prayers, but not always the way we want him to. When we ask God for something, sometimes he answers no or wait. A good answer is not always yes.
Yes, the Lord hears the good man when he calls for help. He saves him out of all his troubles. The Lord is close to those whose hearts are breaking. He saves those who are sorry for their sins. The good man does not escape all troubles. But the Lord helps him in each and every one. (Psalm 34:17-19)
Psalm 139:4; 2 Corinthians 12:8; 1 Peter 5:7