The Messenger of Allah ﷺ said, "Do not give gifts on the condition of survivorship, for whoever does so, the gift follows the path of inheritance."
حدثنا إبراهيم بن خالد حدثنا رباح عن عمر بن حبيب عن عمرو بن دينار عن طاوس عن حجر المدري
قال رسول الله ﷺ لا ترقبوا فمن أرقب فسبيل الميراث
No references are available.
Its isnad is sahih, and it is found in Abu Dawud 3/294 no. 3559, in the chapter on business transactions, Ruqba, and in Nasai in the chapter on Umra 6/273.