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

Deuteronomy 24:20

And if thou shouldest gather thine olives, thou shalt not return to collect the remainder; it shall be for the stranger, and the fatherless, and the widow, and thou shalt remember that thou wast a bondman in the land of Egypt; therefore I command thee to do this thing.

Read in other translations