Prophet Muhammad was human to the marrow of his bones. To serve man, to elevate man, to purify man, to educate man, to humanize man - this was the object of his mission. In thought, in word, in action he had the good of humanity as his sole inspiration.
It was related tah Umar Ibn Al Khattab (May Allah be pleased with him) said: "I heard the Messenger of Allah saying: 'The reward for any deed depends upon the intention and everyone will be rewarded to his intentions. So whoever emigrates for worldly benefit or to marry, his emigration is for what he emigrated for.'"
The Prophet said, "A Muslim is the one who avoids harming Muslims with his tongue and hands. And a Muhajir (emigrant) is the one who gives up (abandons) all what Allah has forbidden."