It was narrated from 'Amr bin Shu'aib, from his father, that his grandfather said:
"A man came to the Prophet (ﷺ) and said: 'I gave my mother a garden of mine, and she has died and has no other heir but me.' The Messenger of Allah(ﷺ) said: 'Your charity is valid and your garden has been returned to you.' " (ES)
English reference (ES): Vol. 3, Book 15, Hadith 2395 (ES)
Arabic reference (ES): Book 15, Hadith 2485 (ES)