Messenger of Allah ﷺ 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." (Using translation from Bukhārī 2776)
عَنِ النَّبِيِّ ﷺ لَا يَقتْسِمُ وَرَثَتِي دِينَارًا مَا تَرَكْتُ بَعْدَ نَفَقَةِ نِسَائِي وَمَئُونَةِ عَامِلِي فَإِنَّهُ صَدَقَةٌ