"And it will come to pass that, when a war occurs" (Exodus 1:10) — they will be added to our enemies and go up out of the land. David said: "For our soul is bowed down to the dust" (Psalms 44:26). At that hour: "Arise, be a help to us, and redeem us for the sake of Your steadfast love" (Psalms 44:27).
Pharaoh's Fear of Israel Joining His Enemies in War
Midrash Tanchuma Buber, Shemot 8:4
והיה כי תקראנה מלחמה (שם שם י), הם מיתוספים על שונאינו ועולים להם מן הארץ, אמר דוד כי שחה לעפר נפשנו (תהלים מד כו), באותה שעה קומה עזרתה לנו ופדנו למען חסדך (שם שם כז).