Hadith.3366 - It was said to Imam Jafar ibn Muhammad Al-Sadiq عليه السلام, "Sharik rejects our testimony.".
Imam عليه السلام replied: "Do not humiliate yourselves."
The compiler of this book, may Allah سبحانه وتعالى have mercy on him, explained that Imam عليه السلام did not intend to prohibit giving testimony, as bearing witness is obligatory.
Rather, he meant to avoid taking on testimonies that would lead to humiliation when presenting them to someone who would reject them.
It is narrated from Abu Kahmas that he said: I approached Sharik with a testimony I was obliged to present.
Sharik said to me, "How can I accept your testimony when you are associated with what you are associated with?"
Abu Kahmas said: "I asked: 'What is that?'
He replied: 'Rafd (i.e., being a Rafidi).'
I wept and said: 'You have associated me with a group I fear I may not even be worthy of belonging to.'
Then Sharik accepted my testimony."
A similar incident occurred with Ibn Abi Ya'fur and Fudayl Sukkara.