Sunan an-Nasa'i, Book 29, Hadith 8 (In-Book)

It was narrated from Azhar As-Samman, from Ibn 'Awn, from Nafi', from Ibn 'Umar, that 'Umar acquired some land at Khaibar. He came to the Prophet and consulted him about that. He said: "If you wish, you may 'freeze' it and give it in charity." So he 'froze' it, stipulating that it should not be sold, given as a gift or inherited, and he gave it in charity to the poor, relatives, slaves, the needy, wayfarers and guests. There is no sin on the administrator if he eats from it on a reasonable basis or feeds a friend with no intention of becoming wealthy from it.

أَخْبَرَنَا إِسْحَاقُ بْنُ إِبْرَاهِيمَ، قَالَ حَدَّثَنَا أَزْهَرُ السَّمَّانُ، عَنِ ابْنِ عَوْنٍ، عَنْ نَافِعٍ، عَنِ ابْنِ عُمَرَ، أَنَّ عُمَرَ، أَصَابَ أَرْضًا بِخَيْبَرَ فَأَتَى النَّبِيَّ صلى الله عليه وسلم يَسْتَأْمِرُهُ فِي ذَلِكَ فَقَالَ ‏ "‏ إِنْ شِئْتَ حَبَّسْتَ أَصْلَهَا وَتَصَدَّقْتَ بِهَا ‏" ‏ ‏.‏ فَحَبَّسَ أَصْلَهَا أَنْ لاَ تُبَاعَ وَ لاَ تُوهَبَ وَلاَ تُورَثَ فَتَصَدَّقَ بِهَا عَلَى الْفُقَرَاءِ وَالْقُرْبَى وَالرِّقَابِ وَفِي الْمَسَاكِينِ وَابْنِ السَّبِيلِ وَالضَّيْفِ لاَ جُنَاحَ عَلَى مَنْ وَلِيَهَا أَنْ يَأْكُلَ مِنْهَا بِالْمَعْرُوفِ أَوْ يُطْعِمَ صَدِيقَهُ غَيْرَ مُتَمَوِّلٍ فِيهِ ‏.‏

sunnah.com