Given a sentence in Somali language, translate the sentence to English language keeping the meaning of the original sentence intact

Somali sentence: Markii ay soo miyirsaday cammuudda jilicsan ayaa noqon doonaan kuwo adag oo ay mahad naqay in Eebe maxaa yeelay, wuxuu dhigay sands u adag oo si fudud u soo gudbaan oo sidaas Muslimiinta tallaabay dooxada in ay fududaato in la barbar-dhigo.
When they awoke the soft sand had become firm and they gave thanks to Allah because He had made the sands firm and easy to cross and so the Muslims crossed the valley in comparative ease.