Psalms 40:4

2 He lifted me up from the pit of despair, out of the miry clay; He set my feet upon a rock, and made my footsteps firm.

3 He put a new song in my mouth, a hymn of praise to our God. Many will see and fear and put their trust in the LORD.

Blessed is the man who has made the LORD his trust, who has not turned to the proud, nor to those who lapse into falsehood.

5 Many, O LORD my God, are the wonders You have done, and the plans You have for us— none can compare to You— if I proclaim and declare them, they are more than I can count.

6 Sacrifice and offering You did not desire, but my ears You have opened. Burnt offerings and sin offerings You did not require.

Do read the surrounding verses too, because the context often says more than a single verse.

Compare

BSB
Blessed is the man who has made the LORD his trust, who has not turned to the proud, nor to those who lapse into falsehood.
KJV
Blessed is that man that maketh the LORD his trust, and respecteth not the proud, nor such as turn aside to lies.
WEB
Blessed is the man who makes the LORD his trust, and doesn’t respect the proud, nor such as turn away to lies.
ASV
Blessed is the man that maketh Jehovah his trust, And respecteth not the proud, nor such as turn aside to lies.
DARBY
Blessed is the man that hath made Jehovah his confidence, and turneth not to the proud, and to such as turn aside to lies.
BLB
Blessed [is] the man who makes YHWH his refuge, and does not turn toward the proud, and those turning aside to falsehood!
ÅB
Lykkelig er den som setter sin lit til Herren
og ikke vender seg til de overmodige
og til dem som bøyer av til løgn.
OTB
Salig er den mann som har gjort Herren til sin tillit,
Og ikke har vendt seg til de stolte, eller til dem som blir involvert i falskhet.
B1930
Salig er den mann som setter sin lit til Herren og ikke vender sig til overmodige og til dem som bøier av til løgn.

Study notes (Tyndale)

Original text and word study

Cross references