This is a reference to Jaʿfar al-Ṣādiq forbidding his followers from joining movements in the anti-Umayyad and pro-Abbasid political environment of his time. Hossein Modarressi cites this reference in his discussion of some of the features of al-Ṣādiq's political stance.
This source is part of the Online Companion to Hossein Modarressi, Text and Interpretation: Imam Jaʿfar al-Ṣādiq and His Legacy in Islamic Law (Harvard University Press, 2022).