Deuteronomy 5:15

15 and thou hast remembered that a servant thou hast been in the land of Egypt, and Jehovah thy God is bringing thee out thence by a strong hand, and by a stretched-out arm; therefore hath Jehovah thy God commanded thee to keep the day of the sabbath.

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 dost labour, and hast done all thy work,
14 and the seventh day [is] a sabbath to Jehovah thy God; thou dost not do any work, thou, and thy son, and thy daughter, and thy man-servant, and thy handmaid, and thine ox, and thine ass, and all thy cattle, and thy sojourner who [is] within thy gates; so that thy man-servant, and thy handmaid doth rest like thyself;
15 and thou hast remembered that a servant thou hast been in the land of Egypt, and Jehovah thy God is bringing thee out thence by a strong hand, and by a stretched-out arm; therefore hath Jehovah thy God commanded thee to keep the day of the sabbath.
16 `Honour thy father and thy mother, as Jehovah thy God hath commanded thee, so that thy days are prolonged, and so that it is well with thee, on the ground which Jehovah thy God is giving to thee.
17 `Thou dost not murder.
Young's Literal Translation is in the public domain.