Volume 3, Book 47, Number 799:
Narrated Ibn Shihab Az-Zuhri:
Anas bin Malik (radiallaahu `anhu) said, “When the emigrants came Medina, they had nothing whereas the Ansar had land and property. The Ansar gave them their land on condition that the emigrants would give them half the yearly yield and work on the land and provide the necessaries for cultivation.” His (i.e. Anas’s mother who was also the mother of ‘Abdullah bin Abu Talha, gave some date-palms to Allah’ Apostle (sallallaahu `alayhi wasallam) who gave them to his freed slave-girl (Um Aiman) who was also the mother of Usama bin Zaid (radiallaahu `anhu). When the Prophet (sallallaahu `alayhi wasallam) finished from the fighting against the people of Khaibar and returned to Medina, the emigrants returned to the Ansar the fruit gifts which the Ansar had given them. The Prophet also returned to Anas’s mother the date-palms. Allah’s Apostle (sallallaahu `alayhi wasallam) gave Um Aiman other trees from his garden in lieu of the old gift.
He could have just taken the trees back from her without giving any explanation and she wouldn’t have asked for a replacement, because I’m sure she knew it was temporary. But he did make up for it and that’s what makes him awesome. :)