It is narrated from Sayyiduna Abu Sa'id al-Khudri (may Allah be pleased with him) that the Messenger of Allah (peace and blessings be upon him) said: "Iblis said: 'O my Lord, I shall keep leading the children of Adam astray as long as their souls remain in their bodies.' So Allah, the Blessed and Exalted, said: 'By My Might and My Majesty, I too shall keep forgiving them as long as they seek forgiveness from Me.'"
Abd bin Humayd and Ahmad bin Hanbal recorded this hadith. Abu Ya'la and al-Hakim also recorded it, and al-Hakim declared it sahih, with these words: The Messenger of Allah (peace and blessings be upon him) said: "Iblis said to his Lord: 'By Your Might and Your Majesty, I shall not cease leading the children of Adam astray as long as the souls remain in them.' His Lord said to him: 'Then by My Might and My Majesty, I too shall not cease forgiving them as long as they seek forgiveness from Me.'"