Learning Torah as a Song

ואמר ר' שפטיה אמר ר' יוחנן כל הקורא בלא נעימה ושונה בלא זמרה עליו הכתוב אומר (יחזקאל כ, כה) וגם אני נתתי להם חוקים לא טובים וגו'

And Rabbi Shefatya said that Rabbi Yoḥanan said: Concerning anyone who reads from the Torah without a melody or studies the Mishna without a song, the verse states: “So too I gave them statutes that were not good, and judgments whereby they should not live” (Ezekiel 20:25), as one who studies Torah through song demonstrates that he is fond of his learning. Furthermore, the tune helps him remember what he has learned.
(כה) וְגַם־אֲנִי֙ נָתַ֣תִּי לָהֶ֔ם חֻקִּ֖ים לֹ֣א טוֹבִ֑ים וּמִ֨שְׁפָּטִ֔ים לֹ֥א יִֽחְי֖וּ בָּהֶֽם׃
(25) Moreover, I gave them laws that were not good and rules by which they could not live:
נעימה - כגון טעמי המקראות:
והשונה בלא זמרה - שהיו רגילין לשנות המשניות בזמרה לפי שהיו שונין אותן על פה וע"י כך היו נזכרים יותר:

מצאתי כי ט"ו דרכים צריכים לעסק התורה... הדרך הח' שיהיה הלמוד בשיר בין במקרא בין במשנה, ולזה תמצא ספרי המשנה הקדומים כתובים עם הנקוד והטעמים...

רבי עקיבא אומר: זמר בכל יום זמר בכל יום אמר רב יצחק בר אבודימי מאי קרא שנאמר (משלי טז, כו) נפש עמל עמלה לו כי אכף עליו פיהו הוא עמל במקום זה ותורתו עומלת לו במקום אחר.

Rabbi Akiva says: Sing every day, sing every day, i.e., review your studies like a song that one sings over and over. Rav Yitzḥak bar Avudimi says: From what verse is this derived? It is as it is stated: “The hunger of the laborer labors for him; for his mouth presses upon him” (Proverbs 16:26), i.e., he exhausts his mouth through constant review and study. He labors in Torah in this place, this world, and his Torah labors for him in another place, the World-to-Come.

זמר בכל יום - היה מסדר למודך אע"פ שסדור בפיך כזמר והוא יגרום לך שתהא לעולם הבא בשמחה ובשירים:

Sing every day - Even if one has reviewed his learning, he should sing it every day, and this will cause your life in the World to Come to be with happiness and songs.

Elsewhere, we find that חז״ל criticise those who relate to Torah as a song:

דרש רבא מפני מה נענש דוד מפני שקרא לדברי תורה זמירות שנאמר (תהלים קיט, נד) זמירות היו לי חוקיך בבית מגורי אמר לו הקב"ה ד"ת שכתוב בהן (משלי כג, ה) התעיף עיניך בו ואיננו אתה קורא אותן זמירות הריני מכשילך בדבר שאפילו תינוקות של בית רבן יודעין אותו דכתיב (במדבר ז, ט) ולבני קהת לא נתן כי עבודת הקודש וגו' ואיהו אתייה בעגלתא

Rava taught: For what reason was David punished with Uzzah’s death? He was punished because he called matters of Torah: Songs, as it is stated: “Your statutes have been my songs in the house of my pilgrimage” (Psalms 119:54). The Holy One, Blessed be He, said to him: Matters of Torah are so difficult and demanding that it is written: “Will you set your eyes upon it? It is gone” (Proverbs 23:5), i.e., one whose eyes stray from the Torah even for a moment will forget it, and you call them songs? For this reason I will cause you to stumble in a matter that even schoolchildren know, as it is written with regard to the wagons brought to the Tabernacle: “And to the descendants of Kohath he did not give, because the service of the holy things belongs to them; they carry them upon their shoulders” (Numbers 7:9). And although the Ark clearly must be carried on people’s shoulders, David erred and brought it in a wagon.

התעיף - לשון [כפול] וכפלת מתרגמינן ותיעוף (שמות כז) שאם תכפיל עיניך לסתום עין בהסח הדעת מהסתכל בהן מיד ואיננו:

תנו רבנן הקורא פסוק של שיר השירים ועושה אותו כמין זמר והקורא פסוק בבית משתאות בלא זמנו מביא רעה לעולם מפני שהתורה חוגרת שק ועומדת לפני הקב"ה ואומרת לפניו רבונו של עולם עשאוני בניך ככנור שמנגנין בו לצים אמר לה בתי בשעה שאוכלין ושותין במה יתעסקו אמרה לפניו רבונו של עולם אם בעלי מקרא הן יעסקו בתורה ובנביאים ובכתובים אם בעלי משנה הן יעסקו במשנה בהלכות ובהגדות ואם בעלי תלמוד הן יעסקו בהלכות פסח בפסח בהלכות עצרת בעצרת בהלכות חג בחג העיד רבי שמעון בן אלעזר משום רבי שמעון בן חנניא כל הקורא פסוק בזמנו מביא טובה לעולם שנאמר (משלי טו, כג) ודבר בעתו מה טוב:

§ The Sages taught: One who reads a verse from Song of Songs and renders it a form of secular song, and not a sacred text, and one who reads any biblical verse at a banquet house, not at its appropriate time, but merely as a song, introduces evil to the world, as the Torah girds itself with sackcloth and stands before the Holy One, Blessed be He, and says before Him: Master of the Universe, Your children have rendered me like a harp on which clowns play. The Holy One, Blessed be He, says to the Torah: My daughter, during the time that they are eating and drinking, in what should they be engaged? The Torah says before Him: Master of the Universe, if they are masters of the Bible, let them engage in the study of the Torah, Prophets, and Writings. If they are masters of the Mishna, let them engage in the study of the Mishna, in the study of halakha, and in the study of aggada. And if they are masters of the Talmud, let them engage in the study of the halakhot of Passover on Passover, in the study of the halakhot of Shavuot on Shavuot, and in the study of the halakhot of Sukkot on Sukkot. They should not treat the Torah with contempt by using it for their own entertainment. Rabbi Shimon ben Elazar testified in the name of Rabbi Shimon ben Ḥananya: Anyone who reads a verse at its appropriate time and in the appropriate manner introduces good into the world, as it is stated: “And a word in its season, how good is it” (Proverbs 15:23).

ה"ג הקורא שיר השירים ועושה אותו כמין זמר - שקורא בנגינה אחרת שאינו נקוד בה ועושה אותה כמין שיר אע"פ שמשיר השירים הוא ועיקרו שיר אסור לעשותו כמין שיר אלא בקריאתו:
הקורא פסוק בבית המשתאות בלא זמנו - במיסב על יינו עושה שחיקותיו בדברי תורה וקורא פסוקים בקול רם לשחק בהם בני המשתה אבל אם אומרו בזמנו על המשתה כגון שהוא יום טוב ונוטל כוס בידו ואומר עליו דברי הגדה ופסוקים מענינו של יום מביא טובה לעולם:

(י) דברי תשבחות. כתוב בליקוטי מהרי"ל שלא כדין הוא שמשוררין במשתה אודך כי עניתני וכה"ג כמה פיוטים לשמחת הריעות כי אז התורה חוגרת שק ואומר' עשאוני בניך כמין זמר אך בב"ה לרגלים מצוה לזמר וכו' עכ"ל ונ"ל דלא שרי אלא אותם השירים שנתקנו על הסעוד' כגון בשבת אבל פיוטים אחרים אסור ועיין בס"ח סימן קע"ו:

What's the difference?

מפני שקרא לד"ת זמירות כו'. כי הזמר הוא בפיו של אדם לפי שעה אבל דברי תורה הם צריכין תמידית שלא ימושו מפיו כדי שלא ישתכחו ממנו ועד"ז אמרו גמרא גמור זמורתא תהא. ומייתי מקרא
ת"ר הקורא פסוק משיר השירים ועושה אותו כמין זמר אפי' לשורר בו להקב"ה שלא ניתן אלא לקרותו בטעמים שבו ולא דרך זמר. ויש לפרש דהני מילי מאן דקרי ליה דרך שחוק אבל מאן דמיכוין לשבוחי ביה לקב"ה דרך ניגון שפיר דמי ומילתא צריכא עיונא. והקורא פסוק בבית המשתאות בלא זמנו כלומר שאינו מתכוין לעסוק בתורה אלא מביאו דרך משל ודרך שחוק מביא רעה לעולם מפני שהתורה חוגרת שק כו'. דברים הללו דרך משל הם לפי שהתורה אינה דבר שיש בו חיות ולא דעת אלא הקב"ה בעצמו מריב ריבה של תורה ומחשב כאלו היא חוגרת שק. ויש לומר שמדת הדין אומרת לפניו כך ותובעת עלבונה של תורה. העיד רבי שמעון כו' כל הקורא פסוק בזמנו שהוא עסוק בו לקרותו כאדם שקורא בתורה או שצריך להביא ממנו ראיה למקום אחר או למעשה שבא לידו מביא טובה לעולם ומסתברא דנפקא לן מיהא דכתיב ודבר בעתי מה טוב: