It is narrated from Sayyiduna Usamah bin Zayd (may Allah be pleased with him) that he said: "The Messenger of Allah (peace and blessings be upon him) went to visit Abdullah bin Ubayy during the illness in which he died, and I was with him (peace and blessings be upon him). He (peace and blessings be upon him) recognised the signs of death on him and said: 'I used to forbid you from friendship with the Jews.'
He said: 'As'ad bin Zurarah has died too, so what of it?'
Then, when he died, his son Abdullah came to him (peace and blessings be upon him) and said: 'Abdullah has died, so give me your blessed shirt so that I may shroud him in it.' So he (peace and blessings be upon him) took off his blessed shirt and it was put on him."
Related hadith on this topic