It is narrated from Sayyiduna Anas (may Allah be pleased with him), who said: When we were at Sarif, the Messenger of Allah (peace and blessings be upon him) said: "Abu Sufyan is near you, so be on your guard against him." Then the Messenger of Allah (peace and blessings be upon him) said to him: "Accept Islam, O Abu Sufyan." He said: O Messenger of Allah! My people, what will become of my people? He (peace and blessings be upon him) said: "Whoever of your people shuts his door is safe." He said: Grant me something special. He (peace and blessings be upon him) said: "Whoever enters your house is safe."
Hadith Referenceالمعجم الكبير للطبراني / باب الصاد / 7237