Reference for Pesachim 207:5
מיתיבי אומר הבדלות במוצאי שבתות ובמוצאי ימים טובים ובמוצאי יום הכפורים ובמוצאי שבת ליום טוב ובמוצאי יום טוב לחולו של מועד אבל לא במוצאי יום טוב לשבת הרגיל אומר הרבה ושאינו רגיל אומר אחת
The [above] text [stated]: R'Eleazer said in R'Oshaia's name: He who would recite but few [distinctions] must recite not less than three; while he who would add must not add beyond seven.' An objection is raised: Habdalah is recited at the conclusion of the Sabbath, at the conclusion of Festivals, at the conclusion of the Day of Atonement, at the conclusion of the Sabbath [giving place] to a Festival, and at the conclusion of a Festival [giving place] to the Intermediary Days,<span class="x" onmousemove="('comment',' V. p. 16, n. 4. - Most of these phrases are in the plural in the original.');"><sup>6</sup></span>