Deuteronomy 24:22 in the King James Version
And thou shalt remember that thou wast a bondman in the land of Egypt: therefore I command thee to do this thing.
Context
21 When you harvest your vineyard, you shall not glean it after yourselves. It shall be for the foreigner, for the fatherless, and for the widow.
22 You shall remember that you were a slave in the land of Egypt. Therefore I command you to do this thing.