I heard 'Umar say to ‘Abdur-Rahman bin ‘Awf, Talhah, az-Zubair and Sa'd: We adjure you by Allah, by whom heaven and earth are sustained, did you know that the Messenger of Allah ﷺ said: “Our (Prophets’) property is not to be inherited and whatever we leave behind is charity.ʿ They said: By Allah, yes, (Using translation from Aḥmad 172)
أنَّ رَسُولَ اللهِ ﷺ قَالَ إِنَّا لَا نُورَثُ مَا تَرَكْنَا صَدَقَةٌ ؟ قَالُوا اللهُمَّ نَعَمْ