The Prophet (ﷺ) said: Life-tenancy is lawful for the one to whom it is given and donation of property to go to the survivor is lawful to whom it is given.
Sunan Abi Dawud Book 24, Hadith 143