The Bible tells us to be intentional about where we spend time and who we hang out with. God blesses those who meditate on His word.. Delight in God's word.
This is the verse in the New Living Translation:
Oh, the joys of those who do not
follow the advice of the wicked,
or stand around with sinners,
or join in with mockers.
But they delight in the law of the Lord,
meditating on it day and night.
Read more about Psalm 1:1-2