I attended a lecture in which the lecturer said if a person does not pray, he is not a Muslim, even though he may fast and do the pilgrimage. He also said that such a person will not earn God’s forgiveness. In the Qur’an, only shirk is unforgivable. Please comment.

You are right when you say that only shirk, or associating partners with God, is the only sin, which God will never forgive. He says in the Qur’an: “God will never forgive that partners are associated with Him, but He will forgive whomever He pleases anything less than that.” Needless to say, neglecting prayers is a much lesser sin than association of partners with God.

A person who does not pray may either be just negligent or careless, or one who denies that God has imposed the duty of offering prayers on us [or believes that God is unfair in imposing such a duty.] In the first case, he believes in God and the message He sent to mankind through His messenger, Prophet Muhammad, peace be upon him, but carelessness leads him to neglect the duty of prayer. God may forgive such a person if he repents, attends to his prayers regularly and resolves not to neglect them again.

On the other hand, a person who denies the duty of prayer and says that God has not imposed this duty on us [or has doubts about His wisdom in imposing this duty] is considered a non-believer, because he denies a part of the faith of Islam that is essentially known to all people. A non-believer will not be forgiven because he lacks the main quality, which entitles him to receive God’s mercy, namely, believing in God. If such a person fasts and offers the pilgrimage but still denies the duty of prayer, he is still a non-believer. Your lecturer should have made the difference.