Sayyiduna Abdullah bin Abbas (may Allah be pleased with them both) says: When Abdullah bin Ubayy fell into the illness in which he died, the Prophet (peace and blessings be upon him) came to him and the two had some conversation. Abdullah said: "I have understood what you are saying. Do me a favour: shroud me in your shirt and pray (the funeral prayer) over me." So the Prophet (peace and blessings be upon him) shrouded him in that very shirt of his and prayed over him. Sayyiduna Abdullah bin Abbas (may Allah be pleased with them both) said: Allah knows best what kind of prayer it was, and Muhammad (peace and blessings be upon him) never deceived any human being.
Hadith Referenceالمعجم الكبير للطبراني / باب العين / 11548