From Sahih Muslim (Hadith 4583):
It has been narrated on the authority of Abu Huraira that the Messenger of Allah (ﷺ) said:My heirs cannot share even a dinar (from my legacy) ; what I leave behind after paving maintenance allowance to my wives and remuneration to my manager is (to go in) charity
Reference: Muslim 4583