So We made Solomon understand the consideration of the interest of both parties along with justice, so he judged upon the owner of the sheep with the reform of the destroyed crop in a period during which the owner of the crop benefits from the benefits of the sheep of milk, wool, and their likes, then the sheep return to their owner and the crop to its owner; for the equality of the value of what was destroyed of the crop to the benefit of the sheep, and each of David and Solomon We gave judgment and knowledge, and We favored David by the subjection of the mountains to glorify with him when he glorified, and likewise the birds glorify, and We were the doers of that.