muhammad and his companions went through the arabian peninsula in the following years and united the divided tribes of arabia under one flag. this led to medina becoming the capital of the newly established islamic state ruled by the prophet muhammad.