Qur'an 2:62 cited earlier is the basic guideline in Islam. Muslims, however, are given further conditions that include charity, abandonment of hypocrisy, no lying, etc.
Elsewhere in the Noble Qur'an, Allah SWT specifically says that He may forgive any sin but one: that of idolatry committed all...