Psalms 1:1-6 (KJV) Blessed is the man that walketh not in the counsel of the ungodly, nor standeth in the way of sinners, nor sitteth in the seat of the scornful.
But his delight is in the law of the LORD; and in his law doth he meditate day and night.
And he shall be like a tree planted by the rivers of water, that bringeth forth his fruit in his season; his leaf also shall not wither; and whatsoever he doeth shall prosper.
The ungodly are not so: but are like the chaff which the wind driveth away.
Therefore the ungodly shall not stand in the judgment, nor sinners in the congregation of the righteous.
For the LORD knoweth the way of the righteous: but the way of the ungodly shall perish.
Similar to what we can read in the Quran
The Women 4.140
He has revealed to you in the Book that when you hear God’s revelations being rejected, or ridiculed, do not sit with them until they engage in some other subject. Otherwise, you would be like them. God will gather the hypocrites and the disbelievers, into Hell, altogether.
Do you not see how God presents a parable? A good word is like a good tree its root is firm, and its branches are in the sky.
It yields its fruits every season by the will of its Lord. God presents the parables to the people, so that they may reflect.
And the parable of a bad word is that of a bad tree—it is uprooted from the ground; it has no stability.
God gives firmness to those who believe, with the firm word, in this life, and in the Hereafter. And God leads the wicked astray. God does whatever He wills