From the Prophet ﷺ. Bahz said, Shuba narrated to us, Qatada informed me, from Abu Aliyah, who said, the cousin of your Prophet ﷺ, Ibn Abbas, narrated to me, saying, the Messenger of Allah ﷺ said, "It is not fitting for a servant," Affan said, "for a servant to say, 'I am better than Yunus bin Matta,'" attributing him to his father.
حدثنا عفان حدثنا شعبة عن قتادة قال سمعت أبا العالية قال سمعت ابن عم نبيكم ﷺ
عن النبي ﷺ وبهز قال حدثنا شعبة أخبرني قتادة عن أبي العالية قال حدثني ابن عم نبيكم ﷺ ابن عباس قال قال رسول الله ﷺ ما ينبغي لعبد قال عفان عبد في أن يقول أنا خير من يونس بن متى ونسبه إلى أبيه
Its isnad is sahih, and it is a repetition of 2167, see also 2294. As for the phrase "Affan said," he was reluctant to say such a thing in ح, but it is not clear, and it had "Ibn Affan" there, and the addition of the word "Ibn" is a clear error. In ك it has "Ubayd, that he should say," which is also not clear.