Caution: Translations of Quran and Ḥadīth may lead to possible misapplications and misinterpretations. This site is intended for students of sacred knowledge that are proficient in comprehending classical Arabic and have a strong foundation in Islamic sciences. Also note that religious injunctions rely on several aspects beyond what one may glean through reading individual aḥādīth.
quran:50:8

Giving insight and a reminder for every servant who turns ˹to Allah˺.  

as an insight (tabsiratan is a direct object denoting reason, that is to say, We did this to give an insight from Us) and a reminder for every penitent servant, who returns to obedience of Us.
القرآن:٥٠:٨

تَبْصِرَةً وَذِكْرَىٰ لِكُلِّ عَبْدٍ مُنِيبٍ  

{تبصرة} مفعول له، أي فعلنا ذلك تبصيرا منا {وذكرى} تذكيرا {لكل عبد منيب} رجّاع إلى طاعتنا.