We gave knowledge to David and Solomon, and they both said, ‘Praise be to God, who has favoured us over many of His believing servants.’
We gave (in the past) knowledge to David and Solomon: And they both said: "Praise be to Allah, Who has favoured us above many of his servants who believe!"