Hadith.3414 - Jamil ibn Darraj narrated from Zurara, from Abu Ja'far Imam Muhammad ibn Ali Al-Baqir (as):
Regarding the words of Allah (swt), the Exalted: "And [mention] David and Solomon, when they judged concerning the field, when the sheep of the people had strayed into it" (Surah Al-Anbiya 21:78).
Imam (as) said
"They did not pass a judgment; rather, they were discussing the matter. 'And We gave Solomon understanding of it" (Surah Al-Anbiya 21:79).