A newborn baby comes to this world without any knowledge. First, the baby saw the mother, and store the first knowledge this is my mother, then comes the father the baby record second knowledge, this is my father then comes the brothers and others. So one by one the baby is been feds with worldly knowledge. Anything that been taught to the baby will accumulate as knowledge. Bad and good is been taught, the concept of religion and God been taught.
When this baby grows older and begins to make decisions, it will refer to the experience and stored information in the mind. For example, we met someone few years ago, and had unpleasant experience with that person and hate him. When we meet him again, our logical mind will begin to compare data’s that stored about that person and the final report will been sent to our thought about that person. The thought then send the data’s to mind to decide, to communicate or not with that person. All this happens in just less then a microsecond. Finally, what will happen is only what is fated. Thought feels pain and gain, mind process, and executes the actions as according to the fate.
GOD GOVERNS EVERYTHING MAN GOVERNS NOTHING Secret in Surah 57 Al-Hadid 57:3 - He is the First and the Last, the Evident and the Immanent: and He has full knowledge of all things. (யாவற்றுக்கும்) முந்தியவனும் அவனே, பிந்தியவனும் அவனே, பகிரங்கமானவனும் அவனே, அந்தரங்கமானவனும் அவனே, மேலும், அவன் அனைத்துப் பொருள்களையும் நன்கறிந்தவன்.

Quran
Quran says...
39:53
- "O my Servants who have transgressed against their souls! Despair not of the Mercy of Allah: for Allah forgives all sins: for He is Oft-Forgiving, Most Merciful.
"என் அடியார்களே! (உங்களில்) எவரும் வரம்பு மீறி தமக்குத்தாமே தீங்கிழைத்துக் கொண்ட போதிலும், அல்லாஹ்வுடைய ரஹ்மத்தில் அவர் நம்பிக்கையிழக்க வேண்டாம் - நிச்சயமாக அல்லாஹ் பாவங்கள் யாவையும் மன்னிப்பான் - நிச்சயமாக அவன் மிக்க மன்னிப்பவன்; மிக்கக் கருணையுடையவன்" (என்று நான் கூறியதை நபியே!) நீர் கூறுவீராக.
41:42 -
No falsehood can approach it from before or behind it: It is sent down by One Full of Wisdom, Worthy of all Praise.அதனிடம், அதற்கு முன்னிருந்தோ அதற்குப் பின்னிருந்தோ உண்மைக்குப் புறம்பான எதுவும் நெருங்காது (இது) புகழுக்குரிய ஞானம் மிக்கவன் - (அல்லாஹ்)விடமிருந்து இறங்கியுள்ளது.
57:22 -No misfortune can happen on earth or in your souls but is recorded in a decree before We bring it into existence: That is truly easy for Allah:பூமியிலோ, அல்லது உங்களிலோ சம்பவிக்கிற எந்தச் சம்பவமும் - அதனை நாம் உண்டாக்குவதற்கு முன்னரே (லவ்ஹுல் மஹ்ஃபூள்) ஏட்டில் இல்லாமலில்லை, நிச்சயமாக அது அல்லாஹ்வுக்கு மிக எளிதானதேயாகும்.
39:53
- "O my Servants who have transgressed against their souls! Despair not of the Mercy of Allah: for Allah forgives all sins: for He is Oft-Forgiving, Most Merciful.
"என் அடியார்களே! (உங்களில்) எவரும் வரம்பு மீறி தமக்குத்தாமே தீங்கிழைத்துக் கொண்ட போதிலும், அல்லாஹ்வுடைய ரஹ்மத்தில் அவர் நம்பிக்கையிழக்க வேண்டாம் - நிச்சயமாக அல்லாஹ் பாவங்கள் யாவையும் மன்னிப்பான் - நிச்சயமாக அவன் மிக்க மன்னிப்பவன்; மிக்கக் கருணையுடையவன்" (என்று நான் கூறியதை நபியே!) நீர் கூறுவீராக.
41:42 -
No falsehood can approach it from before or behind it: It is sent down by One Full of Wisdom, Worthy of all Praise.அதனிடம், அதற்கு முன்னிருந்தோ அதற்குப் பின்னிருந்தோ உண்மைக்குப் புறம்பான எதுவும் நெருங்காது (இது) புகழுக்குரிய ஞானம் மிக்கவன் - (அல்லாஹ்)விடமிருந்து இறங்கியுள்ளது.
57:22 -No misfortune can happen on earth or in your souls but is recorded in a decree before We bring it into existence: That is truly easy for Allah:பூமியிலோ, அல்லது உங்களிலோ சம்பவிக்கிற எந்தச் சம்பவமும் - அதனை நாம் உண்டாக்குவதற்கு முன்னரே (லவ்ஹுல் மஹ்ஃபூள்) ஏட்டில் இல்லாமலில்லை, நிச்சயமாக அது அல்லாஹ்வுக்கு மிக எளிதானதேயாகும்.