The Prophet ﷺ said: Do not give property to go to the survivor and do not give life-tenancy. If anyone is given something to the survivor or given life-tenancy, it goes to his heirs. (Using translation from Abū Dāʾūd 3556)
أَنَّ رَسُولَ اللهِ ﷺ قَالَ «لَا تُرْقِبُوا وَلَا تُعْمِرُوا فَمَنْ أُرْقِبَ شَيْئًا أَوْ أُعْمِرَ شَيْئًا فَهُوَ لِوَرَثَتِهِ»