It is narrated from Sayyiduna Ali (may Allah be pleased with him) that Sayyiduna Ammar (may Allah be pleased with him) sought permission (to enter) from the Prophet (peace and blessings be upon him), and he (peace and blessings be upon him) said: "The good and purified one? Give him permission."
Imam al-Tirmidhi (may Allah have mercy on him) narrated it from Bundar (may Allah have mercy on him), from Ibn Mahdi (may Allah have mercy on him), and said: "This hadith is hasan sahih."
And Imam Ibn Majah (may Allah have mercy on him) narrated it from Uthman bin Abi Shaybah (may Allah have mercy on him) and Ali bin Muhammad al-Tanafisi (may Allah have mercy on him), from Waki' (may Allah have mercy on him), from Sufyan (may Allah have mercy on him).
And Imam Ibn Hibban (may Allah have mercy on him) narrated it from al-Hasan bin Sufyan (may Allah have mercy on him), from Abu Bakr bin Abi Shaybah (may Allah have mercy on him), from Waki' (may Allah have mercy on him), from Sufyan (may Allah have mercy on him).
Related hadith on this topic