It is narrated from Sayyiduna Abdullah bin Abbas (may Allah be pleased with them both) that in the year of the Conquest of Makkah, Sayyiduna al-Abbas bin Abd al-Muttalib (may Allah be pleased with him) brought Sayyiduna Abu Sufyan bin Harb (may Allah be pleased with him) to the Messenger of Allah (peace and blessings be upon him), and he accepted Islam at Marr al-Zahran. Sayyiduna al-Abbas (may Allah be pleased with him) said to him (peace and blessings be upon him): "O Messenger of Allah! Abu Sufyan is a man who loves pride and honour, so if you were to grant him something (distinctive, it would be good)." He (peace and blessings be upon him) said: "Yes! Whoever enters the house of Abu Sufyan is safe, and whoever closes his door is also safe."
Imam Abu Dawud (may Allah have mercy on him) narrated it in this way.