God protected His Apostle from them through his uncle...
God protected His Apostle from them through his uncle, Abu Talib, who mentioned the superiority of the Prophet (S.A.W.A.) among them so that they might extend their kindness to him. He called for Banu Hashim and Banu 'Abd al-Muttalib to stand with him in protecting the Messenger of God (S.A.W.A.).
Quraysh continued their enmity to those who followed the Prophet (S.A.W.A.); every clan that contained Muslims was attacked, imprisoned, thrashed, exposed to the burning heat of Mecca, their food and water supplies were cut, so that they may leave the new religion of Islam.
When the Prophet (S.A.W.A.) saw the affliction of his , and he could not protect them he said, “It would be better for you, if you were to go to Abyssinia, for the king will not tolerate injustice and it is a friendly country, until such time as Allah shall relieve you from your distress.” Thereupon his went to Abyssinia and this was the first hijra in Islam. Quraysh knew that the of the Prophet (S.A.W.A.) had settled in a land in peace and safety, and Islam had begun to spread among the tribes.
They decided among themselves to write a document in which they should put a boycott on Banu Hashim and Banu 'Abd al-Muttalib that they should not marry their women nor give woman to them, and that they should neither buy from them nor sell to them, and when they concurred, they drafted a deed. Then they solemnly agreed on the points and hung the deed up in the middle of Ka'ba. The two clans of Banu Hashim and Banu 'Abd al-Muttalib went to Abu Talib, and entered with him into his shi'b (alley).
Abu Lahab went out from Banu Hashim and helped Quraysh. They remained there for two or three years, until they were exhausted, nothing reaching them except what came from their friends unknown to Quraysh.
When a number of goodwill Quraysh took steps to annul the boycott against them, the Messenger of God (S.A.W.A.) said to Abu Talib, “O uncle verily my Lord Allah has prevailed the termite against Quraysh's deed and it had already eaten it except the words 'In the name of Allah'.” Therefore, Abu Talib went to Quraysh and informed them of what he had heard. He said, “See! In case he is right, annul the deed, and if he is wrong I will get him to you.” They agreed on it.
When they found it true, some men went up to the document and tore it into pieces. Abu Talib, a man of faith from Quraysh who concealed his faith and Khadijah died in the same year.