A man came to the Prophet ﷺ, and in another narration Muhammad said that he came to the Prophet ﷺ and said, "I have given my son a gift, so bear witness to it."The Prophet ﷺ asked, "Do you have any other children?"He replied, "Yes."The Prophet ﷺ asked, "Have you given them the same as you gave him?"He said, "No."The Prophet ﷺ said, "Then ask someone else to bear witness to an act of injustice."
أخبرنا أحمد بن سليمان قال حدثنا أبو نعيم قال حدثنا زكريا عن عامر قال حدثني عبد الله بن عتبة بن مسعود ح وأنبأنا محمد بن حاتم قال أنبأنا حبان قال أنبأنا عبد الله عن زكريا عن الشعبي
أن رجلا جاء إلى النبي ﷺ وقال محمد أتى النبي ﷺ فقال إني تصدقت على ابني بصدقة فاشهد فقال هل لك ولد غيره قال نعم قال أعطيتهم كما أعطيته قال لا قال أشهد على جور
No references are available.
Sourcing, [sahih]. It is in Kubra, no. 6511, and the hadith has corroborating narrations in Bukhari, no. 2650, and elsewhere. See the preceding hadiths.