From Sahih Muslim (Hadith 5538):
This hadith has been reported on the authority of Abu Mu`awiya through another chain of transmitters (and the words are):"Verily, the most grievously tormented people amongst the denizens of Hell on the Day of Resurrection would be the painters of pictures." The rest of the hadith is the same
Reference: Muslim 5538