It is mentioned that Afghana was orphaned at a young age, and brought up by King David. When Solomon became the king, Afghana was made commander-in-chief of the army. Malak Afghana is also credited with the building of the first temple in Jerusalem, the Temple Mount, known later in Arabic as the Haram al-Sharif (, al-haram al-qudsī ash-sharīf):