Ibn Abbas reported that when the verse "And warn your nearest kin" [Shuara 26:214] was revealed, the Prophet ﷺ climbed Safa and began to call out, "Sons of Fihr! Sons of Adi!" naming the clans of Quraysh, until they had all gathered. Anyone who could not come out himself sent a messenger to see what the matter was. Abu Lahab came, along with the rest of Quraysh.The Prophet said, "Tell me, if I informed you that a cavalry force was in the valley about to raid you, would you believe me?"They answered, "Yes, we have never known you to tell us anything but the truth."He said, "Then I am a warner to you of a severe punishment that lies ahead."Abu Lahab said, "May you perish for the rest of your days! Is this why you gathered us?"So there was revealed, "May the hands of Abu Lahab perish, and may he perish. His wealth and what he earned availed him nothing" [Masad 111:1–2].
لما نزلت: {وأنذر عشيرتك الأقربين} [سورة الشعراء: ٢١٤] صعد النبي ﷺ على الصفا، فجعل ينادي: يا بني فهر، يا بني عدي لبطون قريش حتى اجتمعوا، فجعل الرجل إذا لم يستطع أن يخرج أرسل رسولا لينظر ما هو، فجاء أبو لهب وقريش، فقال: أرأيتكم لو أخبرتكم أن خيلا بالوادي تريد أن تغير عليكم أكنتم مصدقي؟ قالوا: نعم، ما جربنا عليك إلا صدقا. قال: فإني نذير لكم بين يدي عذاب شديد. فقال أبو لهب: تبا لك سائر اليوم آلهذا جمعتنا؟ فنزلت: {تبت يدا أبي لهب وتب ما أغنى عنه ماله وما كسب} [سورة المسد: ١- ٢].
Bukhari related it in the tafsir chapter (4770), and Muslim in the faith chapter (208), both from the hadith of Amash, who said, "Amr bin Mura narrated to me, from Saeed bin Jubayr, from Ibn Abbas," and he mentioned it. The wording given is that of Bukhari, and Muslim's wording is similar.