"And the vine said to them" (Judges 9:13). Rabbi Shmuel bar Nachmani said in the name of Rabbi Yonatan: From where do we learn that song is recited only over wine? As it is said, "And the vine said to them, Should I cease my new wine, which gladdens God and men?" (Judges 9:13). If it gladdens men, with what does it gladden God? From here [we learn] that song is recited only over wine.
Song Is Sung Only Over Wine
Yalkut Shimoni on Nach 65:3
ותאמר להם הגפן. אמר רבי שמואל בר נחמני אמר רבי יונתן מנין שאין אומרים שירה אלא על היין שנאמר ותאמר להם הגפן החדלתי את תירושי המשמח אלהים ואנשים, אם אנשים משמח אלהים במה משמח, מכאן שאין אומרים שירה אלא על היין: