Another interpretation of "the horse and its rider" (Exodus 15:1). [Bar Kappara said:] The Holy One, blessed be He, tied them one to the other. Why? So that Israel would benefit from the spoil. Why so? When Israel went out of Egypt and the Egyptians went out to pursue after them, Pharaoh said to them: I know that they took your silver and your gold, yet do not set your minds upon the plunder. What did he do? He opened the treasuries of Joseph. He said: Take for yourselves silver and gold. So they took it and adorned their horses, as it is said, "all the horses of Pharaoh's chariot" (Exodus 14:9). Therefore they were tied one to the other, so that Israel would benefit from the spoil. In this world Israel benefited from the spoil of their enemies, but in the world to come all that the nations amass is for Israel, as it is said, "and her merchandise and her hire shall be holiness to the LORD" (Isaiah 23:18).
Why God Tied the Horse to Its Rider at the Sea
Midrash Tanchuma Buber, Beshalach 14:3
ד"א סוס ורוכבו. [בר קפרא אמר] קשרם הקב"ה זה בזה, למה שיהנו ישראל בבזה, למה כיון שיצאו ישראל ממצרים ויצאו המצרים לרדוף אחריהם, אמר להם פרעה יודע אני שנטלו כספיכם וזהביכם, אלא אל תתנו דעתכם בביזה, מה עשה פתח תסבריות של יוסף, אמר טלו לכם כסף וזהב, ונטלו ועטרו את סוסיהם, שנאמר כל סוס רכב פרעה (שמות יד ט), לפיכך היו קשורים זה בזה, כדי שיהנו ישראל בבזה, בעולם הזה נהנו ישראל בבזת שונאיהם, אבל לעולם הבא כל מה שהאומות מסגלין, לישראל הוא, שנאמר והיה סחרה ואתננה קדש לה' (ישעי' כג יח).