Abdullah bin Abbas reported,

A man from the Ansar embraced Islam, then apostatized and joined the polytheists, after which he came to regret what he had done. He sent word to his people, saying, "Ask the Messenger of Allah ﷺ for me whether there is any chance of repentance for me."His people came to the Messenger of Allah ﷺ and said, "So-and-so has come to regret what he did, and he has asked us to inquire of you whether there is any Tawba available to him."Then the verse was revealed, "How shall Allah guide a people who disbelieved after their belief..." up to His words, "...Forgiving, Merciful" [Aal Imran 3:86–89].So he sent word to him, and he embraced Islam.

Nasai 4073

Sahih

أخبرنا محمد بن عبد الله بن بزيع قال حدثنا يزيد وهو ابن زريع قال أنبأنا داود عن عكرمة

عن ابن عباس قال

كان رجل من الأنصار أسلم ثم ارتد ولحق بالشرك ثم تندم فأرسل إلى قومه سلوا لي رسول الله ﷺ هل لي من توبة فجاء قومه إلى رسول الله ﷺ فقالوا إن فلانا قد ندم وإنه أمرنا أن نسألك هل له من توبة فنزلت {كيف يهدي الله قوما كفروا بعد إيمانهم} إلى قوله {غفور رحيم} فأرسل إليه فأسلم

النسائي 4073صحيح
Contents
Reference
Commentary
Ayat
Collection
Sunan Nasai Sughra
Book
Prohibition of bloodshed
Chapter
Repentance of the apostate
Numbering
Darussalam 4073
Nasai 4073