The Sufficient (Vol 3) · Hadith 1603 (#Ḥadīth #7)
Chapter 64 | Rules about the Very Old or One with an Illness
7ـ عَلِيُّ بْنُ مُحَمَّدٍ عَنْ سَهْلِ بْنِ زِيَادٍ عَنِ ابْنِ أَبِي نَصْرٍ عَنِ ابْنِ بُكَيْرٍ عَنْ مُحَمَّدِ بْنِ مُسْلِمٍ قَالَ سَأَلْتُ أَبَا جَعْفَرٍ (عَلَيْهِ الْسَّلام) عَنِ الْمَبْطُونِ فَقَالَ يَبْنِي عَلَى صَلاَتِهِ.
7. Ali ibn Muhammad has narrated from Sahl ibn Ziyad ibn abu Nasr from ibn Bukayr from Muhammad ibn Muslim who has said the following: “I once asked abu Ja‘far , about the case of one who suffers from an internal illness because of which is not able to control anal discharge. He (the Imam) said, ‘He continues his Salah (prayer) wherever in Salah (prayer) he is.’”
Gradings are classical jarḥ-wa-taʿdīl, name-matched to a rijāl index (not individually re-verified).