"As the LORD commanded Moses His servant" (Joshua 11:15). There is a case of Rabbi Yishbav, who arose and distributed all his property to the poor, and Rabban Gamliel sent word to him: Did the sages not say a fifth of one's property to the poor? But was not Rabban Gamliel before [the council of] Usha? Rabbi Yosei bar Rabbi Bun said in the name of Rabbi Levi: Such was the law in their hands and they forgot it, and the second generation arose and agreed with the view of the first — to teach you that anything upon which a court risks its life, in the end endures, as it was said to Moses at Sinai. And this accords with what Rabbi Mana said: "for it is no empty thing for you" (Deuteronomy 32:47) — and if it is empty, it is empty because of you, for you do not labor in it; "for it is your life" (ibid.) — when you labor in it. Rabbi Tanchuma in the name of Rabbi Huna: "And Bezalel son of Uri son of Hur made all that" — it does not say here "that which Moses commanded," but rather "that which the LORD commanded" (compare Exodus 38:22); even matters he had not heard from his teacher, his own view agreed with what was said to Moses. Rabbi Yochanan in the name of Rabbi Bana'ah: "As the LORD commanded Moses His servant, so Moses commanded Joshua, and so Joshua did; he left nothing undone of all that the LORD commanded Moses" — it does not say here "of all that Moses commanded him," but "that the LORD commanded Moses," even matters he had not heard from his teacher. And the rabbis said: "For the LORD will be your confidence" (Proverbs 3:26) — these are the matters in which you are a fool [kesil]; "and will keep your foot from being caught" — Rabbi Dosa says: from error in ruling; Rabbi Levi says: from harmful spirits. Rabbi Ba said: "from your purse" [reading mi-kis lekha] — if you give charity from your purse, the Holy One, blessed be He, guards you from harmful spirits, from plagues, and from the like.
Joshua Who Left Nothing Undone and the Limit on Giving
Yalkut Shimoni on Nach 22:5
כאשר צוה ה' את משה עבדו (יהושע יא, טו). מעשה ברבי ישבב שעמד וחלק כל נכסיו לעניים, ושלח לו ר"ג והלא אמרו חכמים חומש נכסיו לעניים. ור"ג לאו קודם לאושא הוה, רבי יוסי בר רבי בון בש"ר לוי כך היתה הלכה בידם ושכחוה ועמדו השניים והסכימו על דעת הראשונים ללמדך שכל דבר שנותנין בית דין נפשם עליו סוף שהוא מתקיים כמו שנאמר למשה מסיני. ואתיא כי הא דאמר רבי מנא כי לא דבר רק הוא מכם ואם הוא רק מכם הוא רק למה שאין אתה יגעים בו כי הוא חייכם בשעה שאתם יגעים בו. רבי תנחומא בשם רבי הונא ובצלאל בן אורי בן חור עשה את כל אשר צוה משה אין כתיב כאן אלא את אשר צוה ה' אפילו דברים שלא שמע מרבי הסכימה דעתו כמה שנאמר למשה. רבי יוחנן בשם רבי בנאה כאשר צוה ה' את משה עבדו כן צוה משה את יהושע וגו' לא הסיר דבר מכל אשר צוה אותו משה אין כתיב כאן אלא אשר צוה ה' את משה אפילו דברים שלא שמע מרבו. ורבנן אמרין כי ה' יהיה בכסלך אלו דברים שאתה כסיל בהם. ושמר רגלך מלכד רבי דוסא אומר מן ההוריה. רבי לוי אומר מן המזיקין. אמר רבי בא מכיס לך אם אתה נותן מכיסך צדקה הקב"ה משמרך מן המזיקין ומן הזימות ומן הגולגולת: