Riyad as-SalihinChapter 17Hadith 1002
Full Sharh — Riyad as-Salihin 1002
وعنه قال: سمعت رسول الله صلى الله عليه وسلم يقول: "من صور في الدنيا، كُلف أن يَنفخ فيها الروح يوم القيامة وليس بنافخ" ((متفق عليه)).
English Translation
Ibn 'Abbas (May Allah be pleased with them) said:: I heard the Messenger of Allah (ﷺ) saying, "Whosoever makes a picture, will be punished on the Day of Resurrection, and will be asked to infuse soul therein, which he will not be able to do.".
Source
Riyad as-Salihin(رياض الصالحين)
The Book of the Prohibited actions
Hadith Number
1002