MIDRASH TEHILLIM
1.....(4.2)
You freed me from distress.
According to rabbi Yohanan, there were three matters that David was distressed about:
-the site of the house of God
-the taking of Bathsheba, and
-Solomon's succession to the kingship
But God set his mind at rest about them.
David found the site, as it is said:
"And the angel of the Lord said to Gad to say to David that David should go up to erect an altar to the Lord in the threshing-floor of Ornan the Jebusite. And David went up according to the word of Gad that he spoke in the name of the Lord..... And David said, "This is the House of the Lord God, and this is the altar for burnt offerings for Israel." (Divrei Hayamim I - I Chronicles 21:18-19, 22:1)
On Bathsheba Nathan said to David:
"Also the Lord has removed your sin; you shall not die." (Shmuel II - II Samuel 12:13)
About the third matter a word of the LORD came to David:
"Behold a son will be born to you; he will be a man of peace, and I shall give him peace from all his enemies around about, for Solomon will be his name..." (Divrei Hayamim I - I Chronicles 22:9)
2.....(4.3)
Answer me when I call...
A.
These words must be considered in the light of the verse:
"For what great nation is there that has God so near to it, as the Lord our God is at all times that we call upon Him?" (Devarim - Deuteronomy 4:7)
B.
Rabbi Phinahas said in the name of rabbi Judah, though an idol of gold appears near, yet it is far away, as it is said:
"Those who let gold run from the purse and weigh silver with the balance; they hire a goldsmith and he makes it a god, they kneel, yea they prostrate themselves. They bear it, on the shoulder they carry it, and they put it in its place and it stands, from its place it does not move; yea he cries to it and it does not answer; from his distress it does not save him." (Yeshayahu - Isaiah 46:6-7)
C.
Rabbi Khannia asked rabbi Samuel, What is meant by the words: "You have enveloped Yourself in a cloud, so that no prayer can pass through." (Eichah - Lamentations 3:43)
Rabbi Samuel replied, there are times when the gates of prayer are thrown open, and times when the gates of prayer are shut, but the gates of mercy are never shut, for it is said, The LORD our God is near whensoever we call upon Him.