A similar tradition has been narrated by Ibn Shihab through a different chain of narrators. This version says:
I said: Do you not fear Allah ? Did you not hear the Messenger of Allah (ﷺ) say: We are not inherited. Whatever we leave is sadaqah (alms). This property belongs to the family of Muhammad for their emergent needs and their guest. When I die, it will go to him who becomes ruler after me.
Reference: Sunan Abi Dawud 2977 In-book : Book 20, Hadith 50 English translation : Book 19, Hadith 2971
Help us gift a modern, ad-free Islamic application for the Muslim Ummah. Your donation will be recorded as Sadaqah Jariyah in your book of deeds, In Sha Allah.