Mishkat al-Masabih 190
وَعَن ابْن عَبَّاس قَالَ: من تعلم كتاب الله ثمَّ ابتع مَا فِيهِ هَدَاهُ اللَّهُ مِنَ الضَّلَالَةِ فِي الدُّنْيَا وَوَقَاهُ يَوْمَ الْقِيَامَةِ سُوءَ الْحِسَابِ وَفِي رِوَايَةٍ قَالَ: مَنِ اقْتَدَى بِكِتَابِ اللَّهِ لَا يَضِلُّ فِي الدُّنْيَا وَلَا يَشْقَى فِي الْآخِرَةِ ثُمَّ تَلَا هَذِهِ الْآيَةَ: (فَمَنِ اتَّبَعَ هُدَايَ فَلَا يضل وَلَا يشقى) رَوَاهُ رزين
From Ibn ʿAbbas, who said: Whoever learns the Book of Allah and then follows what is in it, Allah will guide him from misguidance in this world and protect him on the Day of Resurrection from an evil reckoning. And in a narration he said: Whoever follows the Book of Allah will not go astray in this world nor be wretched in the Hereafter. Then he recited this verse: 'Whoever follows My guidance will neither go astray nor be wretched.' Reported by Razin.