ח אמרו חז"ל בשבת (י"א.): יפה תענית לבטל חלום רע כאש לנעורת, ודווקא בו ביום ואפילו בשבת, ויתבאר בסימן רפ"ח ע"ש. ושם יתבאר שאומרים שעל ג' חלומות מתענין בשבת: הרואה ספר תורה שנשרף או תפילין שנשרפו, או יום הכיפורים בשעת נעילה, או שרואה קורות ביתו או שיניו שנפלו ע"ש. ונכון שלא להתענות בשבת (מג"א שם סק"ז), ואף גם בחול אין להרגיל, כי זה לא נאמר רק על אדם טהור ושלא במילוי הכרס, וזולתם אין בהם ממש. ובמדרש קהלת איתא שפתרו לאשה שראתה בחלום שנפלו קורות ביתה ואמרו לה שתלד בן זכר, וכן היה לה ע"ש, וזהו דמיון לולד הנופל מגופה, וכן אנו רגילין לפתור מעין החלום לטוב וכך חובתינו וכך יפה לנו, וכל החלומות הולכים אחר הפה כמ"ש.
8 Chaza"l said (Shabbat 11a) that a fast is good for nullification of a bad dream like fire to tinder, and that applies specifically on the day of the dream (even Shabbat!), and it will be explained in chapter 488 see there. And there it will be explained that they say that regarding 3 dreams one fasts on Shabbat: one who sees a sefer Torah that is burnt or tefillin which are burnt; or Yom Kippur at the time of Ne'ilah; or who sees the beams of their house or their teeth that fall out, see there. And it's proper not to fast on Shabbat (Magen Avraham there, 167), and even during the week one shouldn't do this habitually, because it was only said about a pure person without filling of the stomach, and like this person there is not among them at all. And in Midrash Kohelet they bring that they intepreted for a woman who saw in a dream that the beams of her house fell, and they said to her "you will birth a son", and so happened to her see there, and this is an image of the child who falls from her body. And so we are accustomed to intepret the dream positively and so is our duty and so is appropriate for us, and all dreams follow their interpretation as it is written.