三國遺事
The 13th century Samguk Yusa relates that Kim Inmun died on board ship en route back to Silla, but considering the rather detailed account of Kim's death and subsequent funeral embassy found in the Tang histories and repeated in the "Samguk Sagi", this account seems doubtful.