"And We strengthened his kingdom and gave him wisdom" means: prophethood. "And the judgment of speech" (fasl al-khitab); Al-Hasan said: It means: justice in adjudication. Interpretation of verses 20 through 26 of Surah Sad.
﴿وشددنا ملكه وَآتَيْنَاهُ الْحِكْمَة﴾ يَعْنِي النُّبُوَّة ﴿وَفصل الْخطاب﴾ قَالَ الْحَسَن: يَعْنِي: الْعدْل فِي الْقَضَاء. تَفْسِير الْآيَات من ٢٠ وَحَتَّى ٢٦ من سُورَة ص.