It is narrated from Ibrahim (may Allah have mercy on him) that he said: "When a person declares his acceptance of Islam and then dies without having (yet) prayed, the funeral prayer will be offered over him." It is also narrated from him concerning a person who was taken captive, then declared his acceptance of Islam and died before (getting the chance) to pray, that he said: "The funeral prayer will be offered over him."
Imam Musaddad recorded it, and all its narrators are thiqat (trustworthy).