Sunan an-Nasa'i, Book 34, Hadith 12 (Nasa'i 3739)

'Abdul-Malik bin Abi Sulaiman narrated from 'Ata' who said:

"The Messenger of Allah said: 'Whoever is given something for the rest of his life, it belongs to him for as long as he lives and after he dies.'"