ספר המדות, Song Song · ג
Sefer HaMiddot 1722
ג. עַל־יְדֵי הַנִּגּוּנִים שֶּׁיֵּשׁ בָּהֶם קוֹל בְּכִיָּה, יְכוֹלִים לְהוֹצִיא הַשְּׁבוּיִים, בְּחִינַת מוֹצִיא אֲסִירִים בַּכּוֹשָׁרוֹת.
3. Through the melodies that contain a tone of crying, it is possible to release the captives, the aspect of "He brings out prisoners bakosharot (in a kosher -- propitious -- time).” [t.n. The word bakosharot is split into two words (by the Medrash): beki -- meaning crying, shirot -- meaning song = song with a crying tone].