From Sahih Bukhari (Hadith 2776):
Narrated Abu Huraira:Allah's Messenger (ﷺ) said, "My heirs will not inherit a Dinar or a Dirham (i.e. money), for whatever I leave (excluding the adequate support of my wives and the wages of my employees) is given in charity
Reference: Bukhari 2776