It is narrated from Hazrat Abu Huraira (may Allah be pleased with him) that the Noble Prophet (peace and blessings be upon him) said: Whoever leaves behind children, their upbringing is my responsibility, and whoever leaves behind wealth, it is for his heirs.