It is narrated from Jabir (may Allah be pleased with him) that the Messenger of Allah (peace and blessings be upon him) said: "Do not give gifts in the manner of 'Umra or Ruqba. Whoever gives something as 'Umra or Ruqba, it will be according to the way of inheritance."
Hadith Referenceمسند الإمام الشافعي / كتاب الوقف والعمرى والرقبى / 1067
Hadith Takhrijاخرجه ابوداود، البيوع، باب من قال فيه والعقبه (3556) والنسائي العمرى ذكر اختلاف الفاظ الناقلين لخبر جابر في العمري (3762) وصححه ابن حبان۔