Sunan Abi Dawud, Book 24, Hadith 143 (Abu Dawud 3559)

Narrated Jabir ibn Abdullah:

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.