It is narrated from Hazrat Zaid bin Thabit (may Allah be pleased with him) that the Noble Prophet (peace and blessings be upon him) said: Do not make any property dependent on death (such that when someone dies, his ownership also ends). If anyone does so, then the rules of inheritance will apply to it.
Hadith Referenceمسند احمد / مسند الأنصار رضي الله عنهم / 21650