Horav Yitzchak Elchanan Spektor z.l. explains the repetition of the word “Shabbos” in the following manner. How does one ensure that shimiras Shabbos, Shabbos observance, will be an everlasting covenant between Bnei Yisrael and Hashem? The pasuk responds: One must see to it that his children and generations after him will also observe it.
It is not sufficient for one to simply concern himself with his own spiritual needs while neglecting his children’s simultaneous spiritual development. If this is the case, he can be certain that mitzvah observance will cease with him! One’s focus in religious observance should be “to make the Shabbos for his generations.” Children must be imbued the excitement of preparation for Shabbos and mitzvos in general.