It is narrated from Sa'id bin al-Musayyib (may Allah have mercy on him) that Sayyiduna Ali bin Abi Talib (may Allah be pleased with him) prepared food and invited the Prophet (peace and blessings be upon him), and he (peace and blessings be upon him) accepted it. Then, when he (peace and blessings be upon him) entered the house, he saw a picture there and went back. Sayyiduna Ali (may Allah be pleased with him) said to him (peace and blessings be upon him): "O Messenger of Allah! May my father and mother be ransomed for you, what is the matter with you?" He (peace and blessings be upon him) said: "Indeed, the angels do not enter a house in which there is a picture."
Ibn Majah narrated it from Abu Kurayb.
And al-Nasa'i narrated it through Mas'ud bin Juwayriyah from Waki'.
Imam al-Daraqutni (may Allah have mercy on him) was asked about this narration, and he said: "Waki' narrated it with a connected chain (musnad) from Hisham al-Dastuwa'i, from Qatadah, from Ibn al-Musayyib, from Sayyiduna Ali (may Allah be pleased with him); but the other companions of Hisham differed from him and narrated it from Hisham as mursal, and the mursal narration is more correct."