Hasan and Sa'id bin al-Musayyib, may Allah have mercy on them, said: If a man says, "My sword is for such-and-such person, and if he dies, then for such-and-such person, and if he also dies, then it will return to me," both said: It will be for the first person. And Humayd bin 'Abd al-Rahman said: It will be carried out just as it was bequeathed.
Hadith Referenceسنن دارمي / من كتاب الوصايا / 3297