It is narrated from Hafsah (bint Sirin) (may Allah have mercy on her) that Sayyiduna Anas bin Malik (may Allah be pleased with him) asked me: "What did Yahya bin Sirin die of?" I said: "Of a disease of the stomach." He said: "Know that it is indeed martyrdom for a Muslim."
Imam Musaddad recorded it as mawquf with a sahih chain, and likewise it is reported in the Sahih collections as not marfu', except that there the word "al-ta'un" (the plague) is mentioned instead of "al-batn" (the stomach).