Rabbi Aha bar Hanina said: Had Israel not sinned, they would have been given only the Five Books of the Torah and the book of Joshua, because it sets forth the arrangement of the Land of Israel, as it is said, "For in much wisdom is much grief" (Ecclesiastes 1:18). It is written, "And he broke them beneath the mountain" (Exodus 32:19). Moses gazed at the tablets and saw that the writing had flown off from them, and he cast them from his hands; immediately he was struck dumb and could not answer a word. At that hour a decree was issued upon Israel that they would study Torah amid pain, amid servitude, amid wandering, amid confusion, amid distress, and amid lack of sustenance. And in return for that suffering with which they are afflicted, the Holy One, blessed be He, is destined to repay them their reward in the days of the Messiah, doubled and redoubled, as it is said, "The Lord GOD will come with strength, and His arm shall rule for Him; behold, His reward is with Him" (Isaiah 40:10). And it says, "Who has preceded Me, that I should repay him? Whatever is under the whole heaven is Mine" (Job 41:3): For My benefit the leg of my cow was broken, so that my wages might be paid in full.
Had Israel Not Sinned They Would Have Only Torah and Joshua
Yalkut Shimoni on Nach 37:2
א"ר אחא בר חנינא אלמלי לא חטאו ישראל לא נתן להם אלא חמשה חומשי תורה וספר יהושע מפני שהיא ערכה של א"י שנאמר כי ברוב חכמה רב כעס. (יז) כתיב וישבר אותם תחת ההר נסתכל משה בלוחות וראה שפרח כתב מעליהם והשליכן מידיו מיד נתאלם ולא היה יכול להשיב דבר, באותה שעה נגזרה גזרה על ישראל שילמדו תורה מתוך הצער ומתוך השעבוד ומתוך הטלטול ומתוך הטרוף ומתוך הדוחק ומתוך שאין להם מזונות, ומתוך אותו הצער שהם מצטערים עתיד הקב"ה לשלם להם שכרם לימות המשיח כפול ומכופל שנאמר ה' אלהים בחזק יבא וזרעו מושלה לו הנה שכרו אתו וגו'. ואומר מי הקדימני ואשלם תחת כל השמים וגו' לטובתי נשברה רגל פרתי שתהא משכורתי שלמה: