"And he circumcised the children of Israel at the hill of the foreskins" (Joshua 5:3) - a place where he made a hill from the foreskins. Rav Nachman said: "Give a portion to seven" (Ecclesiastes 11:2) - this is the generation that Moses circumcised on the eighth day; "and also to eight" - this is the generation that Joshua circumcised. [Translator's note: the homily reads "seven" and "eight" as alluding to the two circumcising generations; text terse.] "And this is the reason why Joshua circumcised" (Joshua 5:4) - and he circumcised them. He said to them: What do you suppose, that you will enter the land uncircumcised? Thus the Holy One, blessed be He, said to Abraham, "And I will give to you and to your seed after you" (Genesis 17:8) - on the condition, "and you shall keep My covenant" (Genesis 17:9).
The Hill of Foreskins and the Condition for Entering the Land
Yalkut Shimoni on Nach 15:5
וימל את בני ישראל אל גבעת הערלות (יהושע ה, ג). מקום שהוא עושה (י) גבעה בערלה, רב נחמן אמר תן חלק לשבעה זה דור שמלן משה לשבעה, וגם לשמנה זה דור שמלן יהושע לשמנה. וזה הדבר אשר מל יהושע ומלן. א"ל מה אתם סוברים שאתם נכנסין לארץ ערלים כך אמר הקב"ה לאברהם ונתתי לך ולזרעך אחריך על מנת ואתה את בריתי תשמור: