Muslims believe that every child is born in a pure, natural state. Left to their own, children will grow up instinctively seeking the one true God, However, environmental influences and parents turn a child away from the pure, natural state.
every human being is a sinner, sin being an inevitable outcome of a fallible human nature. No matter how righteous a person is, he or she may at times disobey God through ignorance or forgetfulness.
The better explanation is that God knew in advance that we would sin, and we turned out just the way God planned. God does not discover new things - He knows everything always. So, simply put, the Islamic belief is that people are not born in sin but they will eventually commit sins for which they should sincerely repent, and God will wipe out their sins. People do not inherit sins. Sin is something you do wrong. You couldn't have done anything before you were born, therefore you were born without sin. The Qur'an teaches that God does not hold us responsible for what others did before we were born, and no innocent person would carry the guilt of another . This coincides with our own sense of justice.
No one considers it right to blame children for the sins of their ancestors, or to punish the innocent so that the guilty may go free.