Old Testament readings use the Septuagint , the Scripture the apostles quoted. Masoretic numbering shown for reference.Learn why
LXX

Proverbs 17:18

A foolish man applauds and rejoices over himself, [as he] also that becomes surety would make himself responsible for his own friends.

Read in other translations