The Book of Occultation — al-Ṭūsī · Hadith 119 (#Ḥadīth #36)
Chapter 11 | Evidence of the Imamate of Imam Musa Kadhim and refutation of Waqifiya
59- قال: وروى أحمد بن علي عن محمد بن الحسين بن إسماعيل عن عبد الرحمن بن الحجاج قال: سمعت أبا إبراهيم عليه السلام يقول: إن بني فلان يأخذونني ويحبسونني. وقال: وذاك وإن طال فإلى سلامة.
H 59 - Ahmad bin Ali has narrated from Muhammad bin Husain bin Ismail from Abdur Rahman bin Hajjaj that he said: I heard Abu Ibrahim, Imam Kadhim say: So and so [Bani Abbas] would arrest and imprison me. Then he said: Although this matter would be much prolonged, but it would end in a nice way.
Gradings are classical jarḥ-wa-taʿdīl, name-matched to a rijāl index (not individually re-verified).