This matter of "a fast for his fast" is not necessarily on the following day specifically, and if it is difficult for him to fast two days one after the other, he should not fast on the first day and should fast afterwards. And certainly if the first day was Rosh Chodesh, or Chanukah and Purim, or a Yom Tov, even the second Yom Tov of the diaspora—one should not fast until afterwards, and so too on other days upon which we do not fast, he should leave the fast for afterwards. And there is one who says that on other days that are only a custom, he should fast, as is implied by Sefer Chasidim, that when one fasted a fast for a dream on Yom Tov, he should fast on the next day, and that is Isru Chag; and consequently, all days except for Rosh Chodesh, Chanukah, and Purim are so (Magen Avraham, subsection 4). And I do not understand, for since there is no necessity for it to be on that very day, why should he nullify such a custom that in all the dispersions of Israel they practiced a prohibition to fast on them? And so wrote the Perishah, that one should not fast on them, see there. (And so wrote the Eliyah Rabbah and the Tosefot Shabbat, and in Sefer Chasidim it seems to me there is another intention, and he did not specifically mean the next day, but rather he comes to teach us that if he dreamed on the first Yom Tov and on the last Yom Tov and fasted on both of them, it is sufficient for him to sit a fast for his fast for one day, see there and examine carefully) (And in the Zohar Vayakhel, page 207, it implies specifically the next day, see there).
הך דתענית לתעניתו - אינו בהכרח על יום מחר דווקא, ואם קשה עליו להתענות ב' ימים זה אחר זה - לא יתענה ביום ראשון ויתענה אחר כך. וכל שכן אם היה ביום ראשון ראש חודש או חנוכה ופורים, או יום טוב, אפילו יום טוב שני של גליות - שאין להתענות עד אחר כך, וכן בשארי ימים שאין מתענים בהם - יניח התענית על אחר כך. ויש מי שאומר דבשארי ימים שאינם אלא מנהג - מתענה, כדמשמע מספר חסידים, שכשהתענה תענית חלום ביום טוב - יתענה למחר, והוא אסרו חג, וממילא דכל הימים לבד ראש חודש וחנוכה ופורים - כן הוא (מג"א סק"ד). ולא אבין, דכיון דאין הכרח לבו ביום - למה לו לבטל מנהג כזה שבכל תפוצות ישראל נהגו איסור להתענות בהם, וכן כתב בפרישה שאין להתענות בהם ע"ש. (וכן כתב הא"ר והת"ש, ובספר חסידים נראה לי כוונה אחרת, ולאו דווקא למחר קאמר, אלא קמ"ל דאם חלם לו ביום טוב ראשון וביום טוב אחרון והתענה בשניהם - די לו במיתב תענית לתעניתו יום אחד, ע"ש ודו"ק) (ובזוהר ויקהל ד' ר"ז: משמע דווקא למחר ע"ש)