Surah Ash-Shams

91:8

فَأَلْهَمَهَا فُجُورَهَا وَتَقْوَىٰهَا

And inspired it [with discernment of] its wickedness and its righteousness,

Tafsir 91:8

Then He made it understand - without teaching it - what was evil so it could be abstained from, and what was good so it could be implemented.