He (SWT) gave him Ali as a brother...
He (SWT) gave him Ali as a brother, cousin, adopted son, beloved companion, and the source of happiness and pleasure to his own self and soul. He (SWT) gave him Zaid as a sincere servant and obedient son to assist him in the matters of life. Allah (SWT) instilled Muhammad's love in the hearts of the people, so he had sincere and close companions and relatives who loved him very dearly. Muhammad belonged to a respected and noble tribe and held an honorable position among the people.
These were some of the bounties of Allah (SWT) to Muhammad (SA). As Allah (SWT) said to Muhammad in the Qur’an, **“** Did He not find you an orphan and give you shelter [93:6]?” The love was reciprocal, the relationship was continuous, and the bounties were ongoing until the great bounty, virtue, and honor which had no similarity or resemblance from the Lord of the Worlds! It took place in that fateful night in Cave Hiraa’!
That is why the selection of Allah (SWT) to Muhammad did not come from nothing. Muhammad submitted to God before he received the divine revelation, and he rushed towards Allah (SWT) before he was inaugurated as prophet. Muhammad was attracted to light at a time when only darkness was known. He willingly headed to his true Lord at a time when people did not accept anything but idols, lies, personal interests, nonsense, and fantasies.
He filled himself with divine light at a time when man only knew materialism. Hence, Muhammad was qualified for the divine selection and bounty, as Allah (SWT) is the absolute Justice and there is no way that He (SWT) would choose for His prophecy except the best of the qualified persons. This was the personality, heart, conscience and spirit of Muhammad by which he deserved the selection of Allah (SWT).
This character with all what it possesses is the one we will see later manifesting itself clearly after the inauguration of prophecy while conveying the final divine message! By that divine selection, it indicated the reality of his attachment to his lord even before the inauguration of prophecy. This is the personality which will suffer a lot when facing the rejection of the nonbelievers to his call for Islam and the worship of Allah (SWT) alone.
**“…** And if their turning away is hard on you [6:35].” The same personality which will agonize itself because of the disbelief of the people and their lack of faith!!