David had a son named Solomon (Sulaiman), who was intelligent and wise from childhood. When the following story took place, Solomon was eleven years old.
One day, David was sitting, as usual, solving the problems of his people when two men, one of whom had a field, came to him. The owner of the field said: "0 dear Prophet! This man's sheep came to my field at night and ate up the grapes and I have come to ask for compensation." David asked the owner of the sheep: "Is this true?" He said: 'Yes, sir." David said: "I have decided that you give him your sheep in exchange for the field." Solomon, to whom Allah had given wisdom in addition to what he had inherited from his father, spoke up: "I have another opinion. The owner of the sheep should take the field to cultivate until the grapes grow, while the other man should take the sheep and make use of their wool and milk until his field is repaired. If the grapes grow, and the field returns to its former state, then the field owner should take his field and give back the sheep to their owner."
David responded: "This is a sound judgment. Praise be to Allah for gifting you with wisdom. You are truly Solomon the Wise."
Daivd as a Ruler
Prophet David was a just and righteous ruler who brought peace and prosperity to his people, and whom Allah honored as a messenger. He delivered Allah's message to the people through the precious gift of his melodious voice. When he recited the Psalms (Zaboor) it was as if the rest of creation chanted with him; people listened as if in a trance. The messages David delivered are famous and well remembered. They are known in the Bible as the Psalms or Songs of David.
David divided his working day into four parts: one to earn a living and to rest, one to pray to his Lord, one to listen to the complaints of his people, and the last part to deliver his sermons. He also appointed deputies to listen to his subjects' complaints so that in his absence people's problems might not be neglected.
Although a king, he did not live on the income of his kingdom. Being well-experienced in the craft of weapon-making, he made and sold weapons and lived on that income.
Angels Teach David About Fairness
One day, as David was praying in his prayer niche, he ordered his guards not to allow anyone to interrupt him, but two men managed to enter and disturb him. "Who are you?" he asked. One of the men said: "Do not be frightened. We have a dispute and have come for your judgment." David said: "What is it?" The first man said: "This my brother, has ninety-nine sheep, and I have one. He gave it to me but took it back." David, without hearing from the other party, said: "He did you wrong by taking the sheep back, and many partners oppress one another, except for those who are believers."
The two men vanished like a cloud, and David realized that they were two angels sent to him to teach him a lesson. He should not have passed a judgment without hearing from the opposing party.