2 Chronicles 19:2

19:2 the prophet Jehu son of Hanani confronted him; he said to King Jehoshaphat, “Is it right to help the wicked and be an ally of those who oppose the Lord? Because you have done this the Lord is angry with you!

Joshua 7:11-12

7:11 Israel has sinned; they have violated my covenantal commandment! They have taken some of the riches; they have stolen them and deceitfully put them among their own possessions. 7:12 The Israelites are unable to stand before their enemies; they retreat because they have become subject to annihilation. I will no longer be with you, unless you destroy what has contaminated you.

Proverbs 13:20

13:20 The one who associates with the wise grows wise,

but a companion of fools suffers harm.