Why did Mohammed end up ruling most of the Arabian Peninsula?

to rid the world of others
to rid the area of non-believers
to gain power and riches
to spread the religion of Islam