It is narrated from Sayyiduna Abdullah bin Abbas (may Allah be pleased with them both) that the Prophet (peace and blessings be upon him) said: "Do not give your property as ruqba, for whoever gives something as ruqba, it becomes the property of the one to whom it was given as ruqba."
And ruqba is that a man says: "This thing is for so-and-so as long as he lives; then if so-and-so dies, it will belong to so-and-so (another person)."
Imam Ahmad (may Allah have mercy on him) narrated this hadith from Abu Mu'awiyah and Ibn Numayr, from Hajjaj, from Abu al-Zubayr, with a similar meaning.
And Imam al-Nasa'i (may Allah have mercy on him) narrated it from Muhammad bin Wahb.
And he also narrated it through other chains as mawquf (from the Companion) on Sayyiduna Ibn Abbas (may Allah be pleased with them both).
And Abu Hatim Ibn Hibban al-Busti (may Allah have mercy on him) narrated it from al-Husayn bin Abi Ma'shar, from Muhammad bin Wahb bin Abi Karimah.
Related hadith on this topic