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 accepts the repentance of His servant (or, as the narrator doubts whether he (peace and blessings be upon him) said: forgives His servant) as long as the veil has not fallen." It was asked: And what is meant by the falling of the veil? He (peace and blessings be upon him) said: "That the soul departs while it is a polytheist." Imam Abu Dawud al-Tayalisi, Abu Ya'la, Ibn Hibban in his Sahih and Imam al-Hakim recorded this hadith, and he declared it sahih (authentic); also Imam Ahmad bin Hanbal recorded it with these words: "Indeed Allah Almighty forgives His servant as long as the veil has not fallen", and then he mentioned the whole hadith.