The Messenger of Allah ﷺ ruled regarding the lifetime gift (umra) that when a man grants something to another man and his descendants as a gift, with the stipulation, "If something happens to you and to your descendants, it returns to me and to my descendants," it nevertheless belongs to the one to whom it was given and to his descendants.
أخبرنا محمد بن عبد الله بن يزيد قال حدثنا أبي قال حدثنا سعيد قال حدثني يزيد بن أبي حبيب عن ابن شهاب عن أبي سلمة
أن رسول الله ﷺ قضى بالعمرى أن يهب الرجل للرجل ولعقبه الهبة ويستثني إن حدث بك حدث وبعقبك فهو إلي وإلى عقبي إنها لمن أعطيها ولعقبه
No references are available.
[Sahih] Previously mentioned, no. 3772, and it is in Kubra, no. 6581.