The hand of our God is for good on all who seek him, and the power of his wrath is against all who forsake him. (Ezra 8:22)
Sound familiar? Romans 8:28 says,
And we know that for those who love God all things work together for good, for those who are called according to his purpose.
So, Ezra fasted and prayed for God to provide them safety on their journey, and God answered their prayers.
May God give us faith to trust him!