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

Somali sentence: 21 Oo markii masiibo iyo dhibaatooyin badanu ku soo degaan ayaa gabayganu hortooda ku markhaati furayaa, waayo, afka farcankoodu ma illoobi doono, maxaa yeelay, waan ogahay fikirkooda ay ku fikirayaan haddeertan intaanan iyaga geeyn dalkii aan ugu dhaartay ka hor.
21 And after many evils and afflictions shall have come upon them, this canticle shall answer them for a testimony, which no oblivion shall take away out of the mouth of their seed. For I know their thoughts, and what they are about to de this day, before that I bring them into the land which I have promised them.

Somali sentence: maxamuud maxamed ahmed
Halima Mohamed Ahmed

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.