From Sahih Bukhari (Hadith 6729):
Narrated Abu Huraira:Allah's Messenger (ﷺ) said, "Not even a single Dinar of my property should be distributed (after my deaths to my inheritors, but whatever I leave excluding the provision for my wives and my servants, should be spent in charity)
Reference: Bukhari 6729