"And the LORD spoke to Moses, saying, Speak to the children of Israel" (Exodus 14:1-2). Rabbi Shimon ben Yochai says: every place where it is said "saying" and "you shall say to them," this is for the generations; and every place where it is not said "saying" and "you shall say to them," this is for the moment only. Rabbi says: even in a place where "saying" and "you shall say to them" is not stated, this is for the generations, except in three places.
When a Divine Command Binds All Future Generations
Mekhilta DeRabbi Shimon Ben Yochai 14:1
וידבר ה' אל משה לאמור דבר אל בני ישראל רבי שמעון בן יוחאי אומר כל מקום שנאמר לאמר ואמרת אליהם הרי זה לדורות וכל מקום שלא נאמר לאמר ואמרת אליהם הרי זה לשעה: רבי אומר אף במקום שאין נאמר לאמר ואמרת אליהם הרי זה לדורות חוץ משלשה מקומות: