It is narrated from Sayyiduna Abu Dharr (may Allah be pleased with him) that the Messenger of Allah (peace and blessings be upon him) said: "Indeed, Allah Almighty keeps forgiving His servant as long as the veil (barrier) has not come down." It was said: "O Messenger of Allah (peace and blessings be upon him), what is meant by the veil?" He (peace and blessings be upon him) said: "It means that the soul departs while it is associating partners with Allah."
Imam Abu Ya'la al-Mawsili (may Allah have mercy on him) also narrated it in the same way via Abu Kurayb, Zayd bin Hubab and Abd al-Rahman bin Thawban.