Deuteronomy 5:15

15 And thou shalt remember that thou wast a slave in the land of Egypt, and the Lord thy God brought thee out thence with a mighty hand, and a high arm: therefore the Lord appointed thee to keep the sabbath day and to sanctify it.

Deuteronomy 5:15 Meaning and Commentary

Deuteronomy 5:15

And remember that thou wast a servant in the land of Egypt,
&c.] Even a bondservant; for Egypt was an house of bondage, and there the Israelites were made to serve in hard bondage; of which they are reminded, that their hearts might be touched with it, and inclined to show pity to persons in somewhat similar circumstances; calling to mind how sweet a little rest would have been unto them when in Egypt:

and that the Lord thy God brought thee out thence, through a mighty
hand and by a stretched out arm;
signifying that their deliverance from their state of bondage was not owing to themselves, nor to any creature, but to the mercy and kindness of God, and to his almighty power; and therefore they were under the greatest obligations to observe any command and institution of his he should think fit to make; and particularly this of the sabbath, which was made on that account, as follows:

wherefore the Lord thy God commandeth thee to keep the sabbath day;
in commemoration of their rest from Egyptian bondage.

Deuteronomy 5:15 In-Context

13 Six days thou shalt work, and thou shalt do all thy works;
14 but on the seventh day the sabbath of the Lord thy God: thou shalt do in it no work, thou, and thy son, and thy daughter, thy man-servant, and thy maid-servant, thine ox, and thine ass, and all thy cattle, and the stranger that sojourns in the midst of thee; that thy man-servant may rest, and thy maid, and thine ox, as well as thou.
15 And thou shalt remember that thou wast a slave in the land of Egypt, and the Lord thy God brought thee out thence with a mighty hand, and a high arm: therefore the Lord appointed thee to keep the sabbath day and to sanctify it.
16 Honour thy father and thy mother, as the Lord thy God commanded thee; that it may be well with thee, and that thou mayest live long upon the land, which the Lord thy God gives thee.
17 Thou shalt not commit murder.

The Brenton translation of the Septuagint is in the public domain.