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

Psalms 40:2

Blessed [is the man] who thinks on the poor and needy: the Lord shall deliver him in an evil day.

Read in other translations