Proverbs 22:24–25

Do not befriend an angry man, or you may learn his ways

24Do not make friends with a man of anger, and with a man of wrath do not go,

25lest you learn his ways and take a snare for your soul.

Study it word by word

In its context

22Do not rob the poor because he is poor, and do not crush the afflicted in the gate;

23for YHWH will plead their case, and will rob the soul of those who rob them.

…

26Do not be among those who strike palms, among those who become surety for debts.

27If you have nothing to pay with, why should he take your bed from under you?

Read all of Proverbs 22

Its words in the original

Friendship