قال الكندي، عن ابن عثمان: كان جعفر بن قادم، أوصى الى يونس وكان ذا مال عريض، فحبسه ابراهيم بن الجراح، حتى استخرجها من يده. وقال غيره: أوصى أحمد بن أبي أمية، الى يونس وثلاثة معه، بمال. فصرف اثنان منهم الى يونس، وصيتهما. فطولب يونس بها عند ابن أبي الليث. فسجنه في ذلك. فيقال إنه بقي في السجن ثمان سنين من سنة ثمان وعشرين الى سنة خمس وثلاثين. فلما قدم قوصرة، من عند المتوكل، ليكشف أمر أبي الليث، قيل له: إئت يونسا يشهد عليه وهو في سجنه. فأخرجه وسأله عنه، فقال: ما علمت إلا خيرا. قيل إنه في سجنك منذ كذا وكذا سنة. قال لم يظلمني هو، إذ ظلمني من شهد علي بخلاف قوصرة. ودخل يونس الى منزله، فلما أخرج ابن أبي الليث من السجن ليحكم في قصة بني عبد الحكم، وحكم عليهم. راعى يونس مقاله، وحكم له أنه بريء من تلك الوصية. وكانت عدتها ثلاثة وثلاثين ألف دينار
Al-Kindi said, from Ibn ʿUthman: Jaʿfar ibn Qadim had appointed Yunus as his executor, and he had vast wealth; Ibrahim ibn al-Jarrah imprisoned him until he extracted it from his hand. Someone else said: Ahmad ibn Abi Umayya appointed Yunus and three others with him as executors over some property. Two of them handed their share of the bequest over to Yunus. Yunus was then pressed for it before Ibn Abi l-Layth, who imprisoned him over that. It is said that he remained in prison eight years, from the year 28 to the year 35. When Qawsara came from al-Mutawakkil to investigate the affair of Abu l-Layth, he was told: "Go to Yunus; he will testify against him, and he is in his prison." He brought him out and asked him about him, and he said: "I know only good." He was told: "He has had you in his prison for so many years." He said: "It is not he who wronged me; rather those who testified against me wronged me," contrary to Qawsara [?]. Yunus went into his house. When Ibn Abi l-Layth was brought out of prison to judge in the case of the sons of ʿAbd al-Hakam, and ruled against them, he had regard for Yunus's words and ruled in his favour that he was free of that bequest. Its amount was thirty-three thousand dinars.