Sayyiduna Abu al-Tufayl (may Allah be pleased with him) narrates that when the Messenger of Allah (peace and blessings be upon him) passed away, Sayyidah Fatimah (may Allah be pleased with her) sent a message to Sayyiduna Abu Bakr (may Allah be pleased with him): "Are you the heir of the Messenger of Allah (peace and blessings be upon him), or his family?" He said: "No, rather his family are (the heirs)." She said: "Then where is the share of the Messenger of Allah (peace and blessings be upon him) (from Khaybar and Fadak)?" Sayyiduna Abu Bakr (may Allah be pleased with him) said: "Indeed, I heard the Messenger of Allah (peace and blessings be upon him) say: 'When Allah, the Mighty and Majestic, grants a prophet a means of provision and then takes his soul, He assigns it to the one who takes charge (of the affairs of the caliphate) after him.' So I considered it right to return it to the Muslims (for their benefit)." She said: "You, and what you heard from the Messenger of Allah (peace and blessings be upon him), know best."
Imam Abu Dawud (may Allah have mercy on him) narrated it through Uthman bin Abi Shaybah, from Muhammad bin Fudayl.