God Hears Only The Righteous
“The LORD is far from the wicked: but He heareth the prayer of the righteous.”
Prayer is an intimate communication of the child of God unto His heavenly Father through the Lord Jesus Christ (Hebrews 4:14-16).
This is why God is far from those who do not come to Him in faith through His Son. Prayer is an act of faith done by a sinner saved by the grace of God in Christ. God hears only the righteous, and there are none who are found righteous among men by nature or by our best works. We can only be found righteous before God by His grace through His imputing (crediting) the righteousness of Christ to our account (Isaiah 54:17; Jeremiah 23:5-6).
It is in this revelation by the Holy Spirit that He guides us in prayer and motivates us to pray knowing that God hears our prayers as we approach His throne of grace on the ground of the death of His Son. Christ and Him crucified, therefore, is not only our confidence in salvation but also our confidence in prayer.