Testing reveals a man's flaws
Nahj al-Balāgha|Volume 1|Book 3|Chapter 434
قال السيد الرضي: ومن الناس من يروي هذا لرسول الله (صلى الله عليه وآله)، ومما يُقوّي أنه من كلام أميرالمؤمنين (عليه السلام) ما حكاه ثعلب قال: حدّثنا ابن الأعرابي قال: قال المأمون: لو لا أنّ علياً (عليه السلام) قال: «اخبُر تَقْلِهِ» لقلت أنا: اقْلِهِ تَخْبُرْ.
as-Sayyid ar-Raḍī says: Some people say this saying is of the Prophet صلى الله عليه وعلى آله وسلم, but what confirms that it is the saying of Amīr al-mu’minīn عليه السلام, is the statement related by Tha‘lab from Ibn al-A‘rābī namely that (Caliph) al-Ma’mūn said: “If ‘Alī had not said ‘ukhbur taqlihi’ (Try a man and you will hate him), I would have said, ‘aqlihi takhbur’ (Hate a man in order to try him).”