God is good, benevolent and merciful to all (Ps 117:2), so it’s tempting to confuse answered prayer and temporal blessing with divine approval, thinking God’s kindness implies His validation. We may be like that, but not God.
God loves His enemies; He’s kind to the unthankful and to the evil (Lk 6:35), and often showers the wicked with earthly blessings and health. (Ps 73:3-7) In fact, God may often answer prayer that’s abominable to Himself. There’s no strict correlation between God’s provision for us and His approval of us.
God knows how to deliver the godly out of temptations and to reserve the unjust until the day of judgment to be punished. (2Pe 2:9) By afflicting the righteous He teaches us His ways (Psa_119:67, 71), so it would seem that one way He reserves the wicked for judgement is by blessing them and giving them what they want in this life.
If God is answering the prayers of the wicked we shouldn’t be envious (Ps 37:1-2), nor find satisfaction in Him paving their way to destruction. (Pr 24:17-18) God takes no pleasure in the ruin of the lost (Ez 33:11); we should be weeping for them (Php 3:18-19), esteeming others better than ourselves.