Parshas Devarim · Passuk 2:9
And Hashem said to me: Do not distress Moav, and do not contend with them in war, for I will not give you of their land as a possession, because I have given Ar to the children of Lot as a possession.
Torah Temimah points to Bava Kamma 38b (verified).
English: “Do not distress Moav” — why would Moshe have thought to wage war without authorization? He reasoned a fortiori: if the Torah commanded war against Midian, who came only to help Moav, surely Moav itself should be attacked. The Holy One, blessed be He, answered that His calculation was different: two righteous women, Ruth the Moavite and Naamah the Ammonite, would come from them.
Category A — Formal traditional Middah. Traditional list — Rabbi Yishmael’s 13 Middos. Middah #1 — Kal va-Chomer. Method — Moshe reasons: if the Torah commanded Yisroel to attack Midian, who came only to help Moav, then surely Moav itself should be attacked. Bava Kamma 38b explicitly calls this a קל וחומר. Hashem rejects the conclusion because Rus HaMoaviyah and Naamah HaAmonis are destined to descend from these nations. Formal status — The argument remains a named Kal va-Chomer even though its conclusion is overruled.
The sanctity of the future descendants of Moav and Ammon explains why Moshe was forbidden to wage war against Moav.