بسم الله الرحمن الرحيم
(Fatwa: 515/411/B=04/1435)
It is not good. It is mentioned in hadith that instead of spending your wealth in the path of Allah it is better to leave your children rich than to leave them poor begging others, so that your children are not miserable and abandoned. Hence, first you should give your heirs appropriate shares in house, property and business and after it if you have some more property in your hand then declare it as waqf.
Allah knows Best!
Darul Ifta,
Darul Uloom Deoband