The angel answered, "Now I came" (Meaning that he was upset about the lack of Torah study in the camp)אמש בטלתם תמיד של בין הערבים ועכשיו בטלתם תלמוד תורהYesterday you cancelled the afternoon Tamid offering, and now you're cancelling the study of Torah?
Yehoshua asked him, "Which one did you come for? (i.e. what are you upset about - the sacrifice, or the Torah study?)
The Gemara tells us,
According to the Gemara, Yeshoshua understood that fighting a war isn't an excuse not to study Torah. Rather, we are commanded to do both: fight by day, and study Torah at night. So, after a long day of training and preparation, he spent the night studying Torah.מיד (יהושע ח, ט) וילן יהושע בלילה ההוא בתוך העמק אמר רבי יוחנן מלמד שלן בעומקה של הלכהImmediately, "And Joshua laid that night in the midst of the of the valley" - said Rabbi Yochanan: This verse teaches us that he laid in the valley of halachah.
I couldn't help but think of this Gemara when I came across this incredible article and the accompanying video of an officer in the paratrooper corps (Unit 101), who finished Masechet Taanit yesterday, and wanted to make a siyyum. So, by the light of the soldiers flashlights, he made the siyyum you see here, literally bringing the words of the Gemara to life: Our soldiers fight by day, and lay in the "Valley of Halachah" at night.
מי כעמך ישראל, גוי אחד בארץ!