Reference for Berakhot 109:15
אמר רב חסדא כל חלום ולא טוות ואמר רב חסדא חלמא דלא מפשר כאגרתא דלא מקריא ואמר רב חסדא לא חלמא טבא מקיים כוליה ולא חלמא בישא מקיים כוליה ואמר רב חסדא חלמא בישא עדיף מחלמא טבא וא"ר חסדא חלמא בישא עציבותיה מסתייה חלמא טבא חדויה מסתייה אמר רב יוסף חלמא טבא אפילו לדידי בדיחותיה מפכחא ליה ואמר רב חסדא חלמא בישא קשה מנגדא שנאמר (קהלת ג, יד) והאלהים עשה שייראו מלפניו ואמר רבה בר בר חנה א"ר יוחנן זה חלום רע
Rab Hisda said : [There is no reality in] any dream without a fast. Rab Hisda also said : An uninterpreted dream is like an unread letter. Rab Hisda also said : Neither a good nor a bad dream is fulfilled in every detail. Rab Hisda also said : A bad dream is preferable to a good dream. Rab Hisda also said : When a dream is bad, the pain it causes is sufficient [to prevent its fulfilment], and when the dream is good, the joy it brings is sufficient. Rab Joseph said : As for a good dream, even in my own case, its cheerfulness frustrates it [so that it is not realised]. Rab Hisda also said : A bad dream is worse than scourging ; as it is said, "God hath so made it that men should fear before Him" (Eccles. 3:14), and Rabbah b. Bar Hannah said in the name of R. Johanan : This refers to a bad dream.