«قَدِ اعْتَضْتَ مِنْهُ فَهْمًا وَحَزْمًا وَاللَّبِيبُ الْأَرِيبُ يَبْغِي ذَيْنِ»
In exchange you have gained understanding and prudence, the two things a discerning, capable person should seek.
Iʿtaḍta means to receive something in exchange; fahm / ḥazm are comprehension and prudent resolve. Al-labīb al-arīb combines two near-synonyms for a shrewd, perceptive person. The apparent consolation is edged with satire: the governor has purchased elementary wisdom at a costly price.