The passage teaches that one must first exhaust all natural means available—such as preparing weapons, horses, and chariots for battle, or providing proper food and medicine for the sick—and only after doing so may one rely on divine intervention; miracles occur only when natural efforts have proven insufficient, as illustrated by Mishlei 21:31 ("the horse is prepared for the day of battle; but victory comes from G'd") and supported by Tehillim 147:3 and 33:17.
סוס מוכן ליום מלחמה ולה' התשועה (משלי כא, לא) שלמה המלך ע"ה יזהיר כל אדם בכתוב הזה (משלי כא) שיעשה כל דבר שיצטרך לעשות ובדרך הטבע כל מה שבכחו, ושימסור השאר בידי שמים, כי הנס אינו חל אלא בחסרון הטבע, ועיקר יצירת האדם בנוי על מדת הטבע, ועל כן יצטרך שיעשה האדם פעולות וענינים שיהיו הכנות להשיג בהן חפצו ולעמוד על משאלות לבו, כמי שרוצה ללכת למלחמה על אויביו שראוי לו שיכין כלי זיין וסוסים ומרכבות ליום מלחמה, שאם אינו מכין ויסמוך על הנס ימסר ביד אויביו, או כמי שיש לו חולה שהוא ראוי לתקן לו מסעדים וסמים למאכלו, ומאכילו המאכלים המועילים ולמנוע ממנו המאכלים המזיקים, ואחר שעשה לו כל יכלתו והשתדל בכל כחו ועשה בדרך הטבע כל הכנותיו אין ראוי לו לבטוח שיגיע אל רצונו רק בשם יתעלה לא בהכנות האלה, כי יש אדם שיאבד במלחמה עם כל ההכנות ויש שינצל מבלעדיהן, ויש חולה שימות עם המאכלים המועילים ויש שתגיע לו רפואה עם המאכלים הרעים המזיקים, וא"כ אין עיקר התשועה בענין המלחמה ולא בענין הרפואה להכנותיהם רק בשם יתעלה שכן כתיב (תהילים קמ״ז:ג׳) הרופא לשבורי לב ומחבש לעצבותם, וכתיב (שם) לא בגבורת הסוס יחפץ ולא בשוקי האיש ירצה, וכתיב (שם לג) שקר הסוס לתשועה. זאת כוונת התורה ורוב הפסוקים מוכיחין כן, ולכך תצוה התורה לישראל להשתדל בהכנות האלה שיצאו חלוצים בעלותם למלחמה על אויביהם ושישימו אורב ושישלחו מרגלים בערי האויבים, כי כל הענינים האלה הם הכנות לעשות מה שבכח האדם לעשות בדרך המנהג והטבע, ואחר כן יפעול הנס על כל מעשה הטבע, ואע"פ שישראל לא היו צריכין לזאת לפי שלא היה נצחונן בדרך המנהג והטבע כי אם על פי הזכות והעונש, ואם היו זכאין מעט מהם ינצחו עמים רבים, ואם היו חייבים מעט מן האויבים ינצחו רבים מהם, מכל מקום באה מצות התורה לישראל לעשות כל השתדלותם בהכנות האלה ואחר כך למסור הענין למי שהתשועה לו, כי התורה לא תסמוך על הנס לעולם. ומטעם זה צוה הקב"ה לנח מעשה התיבה כי בידוע שהיה ביכלתו יתעלה שיעביר נח ובניו ברגליהם על מי המבול, ולא יצטרך נח להתנהג בזה בדרך הטבע שיעשה תיבה מעץ ידוע וממדה ידועה באורך וברוחב, אבל התורה תצוה לנו בכך שנשתדל בהכנות בכל הענינים, ועם כל השתדלותנו שתהיה אמונתנו שאין עקר התשועה בהם רק בשם יתעלה, וזהו שאמר שלמה בכאן סוס מוכן ליום מלחמה ולה' התשועה. וכן מצינו בדוד ע"ה כששאל באורים ותומים השיבו הקב"ה (שמואל ב ה׳:כ״ג) הסב אל אחריהם ובאת להם ממול בכאים, צוה להשתדל בדרך המנהג והטבע כמנהג שאר האומות הנוצחין בטבע, וכן מצינו במלחמת העי שאמר הש"י ליהושע (יהושע ח׳:ב׳) שים לך אורב לעיר מאחריה. והוא הטעם בעצמו במרגלים ששלח משה רבינו ע"ה במדבר פארן שהקב"ה צוה בכך, וזהו שכתוב.
סוס מוכן ליום מלחמה ולה' התשועה, ”the horse is prepared for the day of battle; but victory comes from G’d” (Proverbs 21,31). In this verse Solomon warns everybody to do whatever is in his power by using natural means to achieve his success (in a military encounter when such is unavoidable). Beyond that he must leave things to G’d. A miracle occurs only when all the natural means have been exhausted and have proven to be inadequate to produce the desired result. Man was created in such a way that he can cope with most problems by using natural means. If one plans to secure victory over an adversary in a confrontation one must strive to equip oneself with the amount of weapons and the quality of weapons needed to give one an advantage. In other words, in the days of Solomon one needed horses and chariots. If one left everything to heaven one will find that heaven does not intervene on one’s behalf. If someone is sick and one prays for him to be healed such a prayer is useless unless one has first taken the measures known to help the patient to get well, such as giving him the type of food he needs, Only after one has taken all the measures known to medical science which are capable of curing such a patient does one ask heaven to do its part in curing the sick person at hand. This is the deeper meaning of Psalms 147,3 הרופא לשבורי לב ומחבש לעצבותם, “He heals their broken hearts, and binds up their wounds.” It is also written in verse 10 of that same psalm that “He does not prize the strength of horses, nor value the fleetness of men.” We have a third verse (Psalms 33,17) in which David expressly ridicules those who place their trust in their horses by saying: “horses are a false hope for deliverance, for all their great power they provide no escape.” When we reflect on all these verses we can understand why G’d agreed to the dispatch of the spies in spite of the fact that He Himself would deal the mortal blows to the Canaanites. The Israelites were right in doing what is humanly possible to gird themselves for war against the Canaanites including spying out how best to invade the land of Canaan at minimum risk. Setting ambushes, sending undercover agents, etc., are all legitimate ways for preparing an invasion and maximising the chances of success. Once all these steps had been taken G’d would add whatever measure of supernatural assistance was needed to ensure success. The Torah does not make the performance of miracles the cornerstone of its dealings with mankind or the Jewish people. Miracles are exceptions, not norms. This is why G’d had commanded Noach to build an Ark (Genesis 6,15) although G’d could have let all the people whom He wanted to save walk on water or save them in some other miraculous fashion. All the detailed instructions of what material to use for the Ark, how long and how high it was to be, etc., etc., are proof that G’d wanted Noach to do everything humanly possible to make his salvation appear compatible with natural law. Nonetheless, in spite of man’s best efforts, this most likely would not have been enough for all the inmates of the Ark to endure a whole year inside it without divine input, i.e. some form of miracle. This is what Solomon spoke of when he said that the horse should be prepared. When David asks the Urim and Tumim concerning whether he should attack the Philistines in the valley of Refaim (Samuel II 5,23), G’d told him not to mount a frontal attack but to wait until he would hear the sound of the leaves of the baca trees rustle before taking any action. At that time he was to go into action as G’d would march ahead of him attacking the Philistines. In other words, when David consulted G’d by supernatural means, the response was to proceed as far as posible according to natural means. His victory was supposed to be viewed by the other nations as a natural event. When G’d commanded Joshua to lay an ambush before mounting a renewed attack on the town of Ai, (Joshua 8,2), He also wanted the conquest to proceed along the laws of natural law (not like making the walls of Jericho collapse from the sound of the blasts of the shofar). This then is the reason that the Torah wrote that G’d had commanded Moses to dispatch the spies as we read in this portion.