Parashas Beshalach · Passuk 16:25
Chabad.org — English translation + Rashi
Torah Temimah points to Shabbos 118b (verified).
English: Rabbi Shimon ben Pazi reports that one who observes the three Shabbos meals is saved from three calamities: the travail preceding Mashiach, judgment in Gehinnom, and the war of Gog and Magog.
In context: See the cited source for the full section.
Derash on the verse.