 David, Solomon's father, also talked about the danger of associating with unrighteous people. In Psalm 1, verses 1 and 2, David says how blessed, how happy is the man who does not walk in the counsel of the wicked, nor stands in the path of sinners.