There are a possibly a few ways in which they can be deemed "friends", or in other words, share a similar connection.
The first, from a most basic level, is that they are both Rabbinic festivals that commemorate two clear miracles that result in us inserting al hanissim into the shemoneh esrei and bensching.
However, this is a deeper connection.
The Ramchal in Derech Hashem, Part 4 writes expressly:
חנוכה ופורים: ענין חנוכה ופורים הוא להאיר האור המאיר בימים ההם כפי התקונים שנתקנו בם. חנוכה בתגבורת הכהנים על הרשעים בני יון שהיו מתכונים להסיר ישראל מעבודת ה׳ ונתחזקו הכהנים ועל ידם שבו לתורה ולעבודה. ובפרט ענין המנורה לפי תיקוניה שהיו הקטרוגים נגד ענינה והחזירום הכהנים על בורים. ופורים לענין הצלתם של ישראל בגלות בבל וחזרת קבלת התורה שחזרו וקבלו עליהם לעולם כמו שאז״ל (שבת פח א) הדור קבלוה בימי אחשורוש ופרטי הענינם כפי פרטי התיקון
Chanukah and Purim: The content of Chanukah and Purim is to bring out the light that shines during those days, according to the refinements that were refined by them: Chanukah is about the priests (Kohanim) overpowering the evil Greeks, who intended to take Israel away from the service of God. But the priests strengthened themselves, and - through them - [the other Jews] came back to the Torah and the [divine] service, especially that of the Menorah according to its practices, about which there were accusers; whereas the priests brought it back to its propriety. And Purim concerns the matter of the salvation of Israel during the Babylonian exile; and the accepting of the Torah again. For they then accepted it again forever, as they, may their memory be blessed, said (Shabbat 88a), "They went back and accepted it at the time of Achashveirosh." And the details of their content are according to the details of the refinement.
The Sefas Emes you seek is here (The column on the left, second paragraph) with the key quote being:
כי חנוכה ופורים הם מחזיקים אותנו בגלות כי הם מאירים (בגלות) תוך החושך
Because Chanukah and Purim strengthen us - because they illuminate (in exile) in the darkness...