For the eyes of the Lord are upon the righteous (those who are upright and in right standing with God), and His ears are attentive to their prayer. But the face of the Lord is against those who practice evil [to oppose them, to frustrate, and defeat them]. [Psalms 34:12-16.]
Many, so called, prayers fall on the “deaf ears” of a holy God due to wicked intent and evil practices.
Don’t misunderstand me, God hears the cry of a repentant sinner. He hears those who seek Him and not a god of their own making.
The living God, Creator of heaven and earth and all that is therein, is holy and has no communion with those of wicked and evil intent, even when done umder the guise of “religion” and devotion to “god”.
God alines Himself with those who yield to and obey His righteous decrees. He hears, heeds, and favors those in covenant with Him.
Now who is there to hurt you if you are zealous followers of that which is good? 1 Peter 3:12-13 AMP