Abdullah bin Rabah narrates from Sayyiduna Abu Hurayrah (may Allah be pleased with him); he mentioned the hadith, and in it is: The Ansar surrounded the Prophet (peace and blessings be upon him) near (the hill of) al-Safa. Abu Sufyan came and said: O Messenger of Allah, the multitude of Quraysh has been wiped out; there will be no Quraysh after today. He (peace and blessings be upon him) said: "Whoever enters his house is safe, whoever lays down his weapons is safe, whoever enters the house of Abu Sufyan is safe, and whoever shuts his door is safe."
(b) Yahya bin Hassan narrates the same from Hammad, but he did not mention the words "Whoever enters his house is safe."
Hadith Referenceالسنن الكبرى للبيهقي / كتاب السير / 18274