As the verses also inform us, some of the Prophet Musa's people quailed and thought, "We will surely be overtaken." The Prophet Musa, however, did not despair for a moment. He remembered that Allah's help was at hand. Following this trial, Allah miraculously divided the waters of the sea, leaving a dry path in the middle, and guided them to the other shore. Meanwhile, the waters suddenly began to close in on the Pharaoh and his soldiers, who blindly set foot on the same path, and they all drowned. Once the submission of believers became obvious, Allah turned a bad situation into a great blessing.
In the Qur'an, Allah also gives the submission of Our Prophet to His will as an example:
If you (the believers) do not help him (the Prophet), Allah will help him as He did when the disbelievers drove him out and there were two of them in the Cave. He said to his companion, "Do not be despondent, Allah is with us." Then Allah sent down His serenity upon him and sent to his aid invisible warriors. He routed the unbeliever and exalted the word of Allah. Allah is Almighty, All-Wise.
In times of difficulty, the Prophet Muhammad put his trust in Allah and called upon his companions to be submissive to Him.
People of perfected faith take the Prophet's good conduct as their example. Never swerving from this standard of moral perfection, they meet every difficulty they face with the words:
… "Allah is enough for me. All those who truly trust put their trust in Him."