"I waited patiently for the Lord;
And He inclined to me,
And heard my cry." Psalm 40:1

'And heard my cry' is the third part of this verse that we have been looking into for the past two weeks. God's love, grace and mercy is so far beyond what we can comprehend! The whole of the Godhead is involved in teaching us all these things now and throughout eternity. Jesus tells us, "...The Holy Spirit, whom the Father will send in My name , He will teach you all things." John 14:26

Divine hearing (God; attentive to the prayers of the saints):
Psalm 18 is David's song of thanksgiving when the Lord delivered him from the hands of his enemies and of King Saul.
Vs. 6 says,
"In my distress I called upon the Lord,
And cried out to my God;
He heard my voice from His temple,
And my cry came before Him, even to His ears."

2 Samuel 22:7 is like it:
"In my distress I called upon the Lord,
And cried to my God.
He heard my voice from His temple,
And my cry entered His ears." Vs. 7
(NOTE: If you compare 2 Samuel 22 and Psalm 18 there are variations. 
Spurgeon
says, "...this suggests the idea that it was sung by David at different times when he reviewed his own remarkable history and observed the gracious hand of God in it all.")

"The eyes of the Lord are on the righteous, And His ears are open to their cry." Psalm 34:15

"He who planted the ears, shall He not hear?
He who planted the eyes, shall He not see? Psalm 94:9

"Behold, the Lord's hand is not shortened, That it cannot save; Nor His ear heavy, That it cannot hear." Isaiah 59:1

"It shall come to pass
That before they call, I will answer;
And while they are still speaking, I will hear." Isaiah 65:24

Scripture tells us that God hears the prayers of the righteous, those who fear (reverence Him):
"But know that the Lord has set apart for Himself him who is godly; The Lord will hear when I call to Him." Psalm 4:3

"The righteous cry out, and the Lord hears, And delivers them out of all their troubles." Psalm 34:17

"The Lord is far from the wicked,
But He hears the prayer of the righteous." Proverbs 15:29

"For the eyes of the Lord are upon the righteous, And His ears attend to their prayer, But the face of the Lord is against those who do evil." 1 Peter 3:12

There are so many more references to God answering, but I leave that to you to search out. Don't forget the answered prayers of Moses, Hannah, Samuel, Solomon, Elijah, Zacharias, and the early church to name a few.

I will close with Psalm 91:14-16; it is the promise to answer prayer to those who have set their love on God:
"Because he has set his love upon Me, therefore I will deliver him; I will set him on high, because he has known My name.
He shall call upon Me, and I will answer him; I will be with him in trouble; I will deliver him and honor him.
With long life I will satisfy him,
And show him My salvation."
Glory to you Lord God and with thankful hearts we give You all praise and honor! We are blessed beyond measure! Amen