We know that God does not listen to sinners. He listens to the godly man who does his will.

“God does not listen to sinners.” = (Psalms 66:18, Proverbs 15:29, Isaiah 1:15)

Psalms 66:18  If I had cherished sin in my heart, the Lord would not have listened;

Proverbs 15:29  The LORD is far from the wicked but he hears the prayer of the righteous.

Isaiah 1:15  When you spread out your hands in prayer, I will hide my eyes from you; even if you offer many prayers, I will not listen. Your hands are full of blood;

“He listens to the godly man who does his will.” (Psalms 34:15, 145:19)

Psalms 34:15  The eyes of the LORD are on the righteous and his ears are attentive to their cry;

Psalms 145:19  He fulfils the desires of those who fear him; he hears their cry and saves them.