Nadr bin Anas said: I was with Sayyiduna Abdullah bin Abbas (may Allah be pleased with them both) while he was giving legal rulings (fatwas) to people, without attributing any of his rulings to the Messenger of Allah (peace and blessings be upon him). A man came to him and said: "I am from Iraq, and I make pictures." Ibn Abbas (may Allah be pleased with them both) said: "Come closer," saying it two or three times. Then he said: I heard Muhammad (peace and blessings be upon him) say: "Whoever makes pictures in this world will be required on the Day of Resurrection to breathe a soul into them, but he will not be able to breathe a soul into them."
Hadith Referenceالسنن الكبرى للبيهقي / كتاب الصداق / 14569