Jabir bin Abdullah (may Allah be pleased with him) narrated that the Messenger of Allah (ﷺ) said: "If the wealth of Bahrain comes to me, I will give you such and such." Before the wealth arrived, the Prophet (ﷺ) passed away. Then, when that wealth came to Abu Bakr (may Allah be pleased with him), he gave me from it. Rabi' (may Allah have mercy on him) said that the remaining part of the hadith, from "when it came to me..." onwards, has been narrated to me by no one except al-Shafi'i (may Allah have mercy on him).
Hadith Referenceمسند الإمام الشافعي / كتاب الجهاد وقسم الغنائم / 1762
Hadith Takhrijاخرجه البخاري، الهبة وفضلها ، باب اذا وهب هبة او وعد ثم مات قبل ان تصل اليه (2598) ومسلم ، الفضائل، باب في سخانه (2314)۔