These are personal reflections on two ayat, offered as personal understanding and not as tafsir. Please check them against the scholars.
وَنَفْسٍ وَمَا سَوَّاهَا فَأَلْهَمَهَا فُجُورَهَا وَتَقْوَاهَا
By the soul, and the One who fashioned it, and inspired it with an awareness of its wickedness and its righteousness.
What the ayah says
Allah swears by the soul and by the One who fashioned it, then says He inspired it with its fujūr and its taqwā. Fujūr is wickedness, or open wrongdoing. Taqwā is righteousness, and it carries the sense of God-consciousness, a guarding of oneself. As I understand it, every soul comes with some awareness of wrong and of right, placed there by Allah. Ibn Abbas explained the ayah as Allah making clear to the soul its good and its evil.
The claim worth taking seriously
We don't need God or religion. We already know right from wrong.
This is a common claim, and it is often made with a bit of condescension. The suggestion is that people of faith are less evolved, morally and mentally, because they need the promise of paradise or the fear of hell to behave. Good people, on this view, do good for its own sake.
The ayah isn't arguing with it
The ayah is not a gotcha. It agrees that the soul knows. Allah inspired each soul with its sense of wrong and its sense of right. The Quran does not claim that people are blank until religion fills them in.
But where did it come from?
That is the follow-up question I keep coming back to. A description of matter tells us what is. It does not tell us what ought to be. I haven't come across an explanation that settles why we ought to be honest or just, as opposed to why we tend to feel that way. Hardly anyone actually believes that might makes right, and the ayah has an answer for why: the knowledge was placed there. Used this way, the claim that we already know good from evil becomes a pointer to Allah.
Others see it differently. Many thinkers hold that morality can be explained without God, through evolution, social agreement or reason. Muslim thinkers answer that these explain why we feel obliged without explaining why we are. This post only offers how the ayah reads to me.
Knowing for myself is not knowing for everyone
The soul's awareness is a starting point. It does not tell us the right way to act in every situation, or for all of humanity. The next ayat speak of the one who purifies it and the one who corrupts it (91:9–10), usually understood as the soul. The awareness is there, and it still needs guidance.
Questions to reflect on
Where does my own sense of right and wrong come from?
Do I act on what my soul already knows?