Deuteronomy 24:18

King James Version Bible (KJV)
But thou shalt remember that thou wast a bondman in Egypt, and the Lord thy God redeemed thee thence: therefore I command thee to do this thing.

Read Deuteronomy 24:18 in other translations