Sunan an-Nasa'i, Book 48, Hadith 320 (Nasa'i 5368)

It was narrated that Ibn 'Abbas said:

"The Messenger of Allah said: 'Whoever makes an image will be punished until (he is commanded) to breathe a soul into it, and he will not be able to do so.'"