الآية رقم (8) - فَأَلْهَمَهَا فُجُورَهَا وَتَقْوَاهَا

(8) - (And inspired it [with discernment of] its wickedness and its righteousness, (8))

Allah (swt) gave you different perception tools; the hearing, the sight and the heart, showed you the way of right and wrong, gave you a brain to differentiate between the two paths and explained to you the consequences of each way, so that, you either follow the way of righteousness or the way of wrongdoings.

Righteousness is to fear Allah (swt) and avoid what leads to His punishment.