Imam Ali ibn Abi Talib عليه السلام used to say: "Whoever dies while holding partnership capital, if he specifies it before his death and says, 'This belongs to so-and-so,' then it is his. However, if he dies without mentioning it, it will be treated like the property of other creditors."