The Prophet (ﷺ) said: If anyone is given life-tenancy, it belongs to him and to his descendants. His descendants who inherit him will inherit from it.
Sunan Abi Dawud Book 24, Hadith 136