In darkness, we can only take the false and deviant path; so when God created Hazrat Adam, in the first step, after the creation, he says in the Holy Quran: " He taught Adam all the names" (Surah AL-BAQARA, verse 21), first, I granted him a complete knowledge and wisdom. He then became a prophet with this knowledge, got accustomed with morality, became polite with manners and found the truth and lived with that truth and passed away with it as well.
source : erfan.ir