A plea for divine help during a crisis often relies on a deep understanding of history and relationship. In his prayer, Jehoshaphat presents a moral and historical argument to God, leaning on the eternal nature of a divine promise and the inherent responsibility of a gift-giver.
The argument rests on a logical foundation: it is the natural behavior of someone who gives a gift to help the recipient hold onto it [מצודת דוד]. Just as a human king who grants a valuable estate to a beloved friend will fight fiercely to protect it from thieves, God is expected to defend the land He gave to the Israelites and drive away the foreign armies threatening them [רש״י].
Furthermore, the original removal of the Canaanite nations serves as clear proof of God's intention [מצודת דוד, ביאור שטיינזלץ]. If He had wanted those nations to dwell in the land, He never would have expelled them in the first place. Because God's will is constant, there is no reason He would allow other nations to return and conquer the territory now [מלבי״ם].
A potential challenge to this claim arises: perhaps the Israelites originally earned the land through their own good deeds, and now, having sinned, they have lost their right to it. To counter this, the prayer emphasizes that the land was never granted based on the Israelites' behavior at the time. Instead, it was an absolute, unconditional promise made to Abraham and his descendants [מלבי״ם]. Because the land was given purely out of love for Abraham, it was never meant to be a temporary or passing gift. It remains a permanent estate, secured by an unchangeable promise that lasts forever [רש״י, מלבי״ם, ביאור שטיינזלץ].