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

Somali sentence: Habeen kaas, Amr tagay qalcadda oo keliya oo ka dhigay inuu u dhaqaaqo Madiina halkaas oo uu habeenkii ku qaatay ee Masaajidka. Maxaa dhacay isaga ka dib la aqoon, si kastaba ha ahaatee,Rasuulka Alle (Salla Allahu alihi wa Sallam) u sheegay saaxiibbadiis ah in Amr ahaa nin kan Eebe ku badbaadi madaama uu daacada u ah.
That night, Amr left the fortress alone and made his way to Medina where he spent the night in the Mosque. What happened to him afterwards is unknown, however, the Messenger of Allah (salla Allahu alihi wa sallam) told his Companions that Amr was a man whom Allah saved on account of his loyalty.