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

Somali sentence: 10 laakiin Ilaah baa isaga la jiray oo dhibaatadiisii oo dhan ka samatabbixiyey, oo axsaan iyo xigmad ka siiyey Fircoon, oo ahaa boqorkii Masar; markaasuu isaguna wuxuu isagii taliye uga dhigay Masar iyo reerkiisii oo dhan.
10 And delivered him out of all his afflictions, and gave him favour and wisdom in the sight of Pharaoh king of Egypt; and he made him governor over Egypt and all his house.