The Messenger of Allah ﷺ said, when "And warn your closest kinsfolk" [Shuara 26:214] was revealed to him, "People of Quraysh, ransom yourselves from Allah, for I cannot avail you anything against Allah.Sons of Abdul-Muttalib, I cannot avail you anything against Allah.Abbas bin Abdul-Muttalib, I cannot avail you anything against Allah.Safiyyah, aunt of the Messenger of Allah ﷺ, I cannot avail you anything against Allah.Fatimah, daughter of Muhammad, ask me whatever you wish of my wealth, but I cannot avail you anything against Allah."
أخبرنا سليمان بن داود عن ابن وهب قال أخبرني يونس عن ابن شهاب قال أخبرني سعيد بن المسيب وأبو سلمة بن عبد الرحمن
قال رسول الله ﷺ حين أنزل عليه {وأنذر عشيرتك الأقربين} قال يا معشر قريش اشتروا أنفسكم من الله لا أغني عنكم من الله شيئا يا بني عبد المطلب لا أغني عنكم من الله شيئا يا عباس بن عبد المطلب لا أغني عنك من الله شيئا يا صفية عمة رسول الله ﷺ لا أغني عنك من الله شيئا يا فاطمة بنت محمد سليني ما شئت لا أغني عنك من الله شيئا
Bukhari narrated it in tafsir, chapter "Warn your near relatives and lower your wing," hadith 4771, as a suspended narration, and Muslim, hadith 206 (see the preceding hadith, 3674), from the hadith of Ibn Wahb through this route, and it is in Kubra, hadith 6473.