It his been narrated on the authority of Abu Huraira that the Messenger of Allah (ﷺ) said:" We do not have any heirs; what we leave behind is a charitable endowment
Hadith No. 4585
Sahih Muslim