I heard Allah's Messenger saying, "The reward of deeds depends upon the intentions and every person will get the reward according to what he has intended. So whoever emigrated for worldly benefits or for a woman to marry, his emigration was for what he emigrated for."
Our Prophet PBUH founded the State of Madinah on modern principles of Rule of Law, Human Rights, Compassion, Meritocracy & the Pursuit of Knowledge as a sacred duty. If a state follows these principles it will rise.