Abdullah bin Yasar reported,

I was sitting with Sulayman bin Surad and Khalid bin Arfata when they mentioned that a man had died from a stomach ailment. Both of them wished to be present at his funeral.One of them said to the other, "Did the Messenger of Allah ﷺ not say, 'Whoever is killed by his stomach will not be punished in his grave'?"The other replied, "Yes, indeed."

Azami 3878

Sahih

عن عبد الله بن يسار قال

كنت جالسا، وسليمان بن صرد وخالد بن عرفطة فذكروا أن رجلا توفي، مات ببطنه فإذا هما يشتهيان أن يكونا شهداء جنازته، فقال أحدهما للآخر: ألم يقل رسول الله ﷺ: من يقتله بطنه فلن يعذب في قبره فقال الآخر: بلى.

الأعظمي 3878صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Funerals
Chapter
Conditions of the deceased in the grave
Section
One who dies of stomach illness is not punished in his grave
Numbering
Jami al-Kamil 3878 (2nd edition)
Azami 3878