The messenger of Allah was not only an Imam, but also a head of state