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

Somali sentence: 8 wayna ku socon jireen qaynuunnadii quruumaha kale, kuwaasoo Rabbigu ka eryay dadka Israa'iil hortooda, iyo kuwii ay boqorradii dadkii Israa'iil samaysteenba.
8 And they walked according to the way of the nations which the Lord had destroyed in the sight of the children of Israel and of the kings of Israel: because they had done in like manner.