"He that turneth away his ear from hearing the law, Even his prayer is an abomination."
That refers to the dichotomy of those who reject God and His Word, and then pray??
But He promises that those who seek Me will find me, and of course He hears the sinners prayer. To say that God does not listen to the prayers of the "unrighteous" would simply mean that He doesn't listen to ANY prayers, since none of us are righteous, no not one!
Come on, get with the program and take everything in proper context and don't split hairs for the sake of argument.
God's states priority is HIS PEOPLE ( as the Father). God made a path for "the world" to come to Him.
Those who do not take that path do not get the benefits that the children of the promise do.
There are hundreds of scripture defining and separating Gods children and the "world".
None of this obviously precludes or denies or even try to say that God will not inject Himself into any situation in any way he sees fit- he will.
God will also hear and respond to a sinner seeking repentance
The concept like "Bruce Almighty" with a "yahweh.com" set up is an anti scriptural fantasy.