Hadith Q3049

وَالدَّلِيلُ عَلَى أَنَّ قَوْلَ النَّبِيِّ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ‏:‏ ‏"‏ رُفِعَ الْقَلَمُ عَنْ ثَلَاثٍ ‏"‏، أَرَادَ الْقَلَمَ مِمَّا يَكُونُ إِثْمًا وَوِزْرًا عَلَى الْبَالِغِ إِذَا ارْتَكَبَهُ، لَا أَنَّ الْقَلَمَ مَرْفُوعٌ عَنْ كِتَابَةِ الْحَسَنَاتِ لِلصَّبِيِّ إِذَا عَمِلَهَا
And the explanation of the evidence that the statement of the Prophet (peace be upon him) that the pen has been lifted from three persons: by this, he meant that the sins committed by these individuals will not be recorded as they are recorded for an adult person.
Hadith Reference صحيح ابن خزيمه / جماع أبواب ذكر أفعال اختلف الناس فى إباحته للمحرم، نصت سنة النبى صلى الله عليه وسلم أو دلت على إباحتها / Q3049