Dawud was from the Children of Israel and among the descendants of Ibrahim whom Allah guided (6:84). Some time after Musa, the Children of Israel had been driven from their homes and children. Their leaders asked a prophet of theirs to appoint a king so that they could fight in the way of Allah, and Allah chose Talut, a man He had given knowledge and strength (2:246–247).
Talut led his army out and tested them at a river; most of them drank from it and turned back. The few who remained faced Jalut (Goliath) and his army and prayed: "Our Lord, pour patience upon us, make our feet firm, and help us against the disbelieving people" (2:249–250). They defeated them by Allah's permission. "And Dawud killed Jalut, and Allah gave him kingship and wisdom, and taught him of whatever He willed" (2:251).
Allah made Dawud a prophet and gave him the Zabur (4:163; 17:55). He strengthened his kingdom and gave him wisdom and decisive judgement (38:20). Dawud was a man of strength in worship who constantly turned back to Allah (38:17). When he glorified Allah, the mountains glorified with him in the evening and at sunrise, and the birds gathered to him (38:18–19; 34:10). The Prophet ﷺ said that the most beloved fast to Allah is the fast of Dawud, who fasted every other day, and the most beloved prayer is his prayer: he slept half the night, stood in prayer for a third of it and slept for a sixth (Sahih al-Bukhari 1131; Sahih Muslim 1159). His voice was so beautiful that when the Prophet ﷺ praised the recitation of Abu Musa al-Ashʿari, he said he had been given one of the sweet voices of the family of Dawud (Sahih al-Bukhari 5048; Sahih Muslim 793).
Allah softened iron for him and taught him to make coats of mail, measuring the links with care, to protect people in battle (34:10–11; 21:80). Though he was a king, he lived from his own work. The Prophet ﷺ said: "No one has ever eaten better food than what he eats from the work of his own hands, and the Prophet of Allah Dawud used to eat from the work of his own hands" (Sahih al-Bukhari 2072). Allah said to his household: "Work, O family of Dawud, in gratitude" (34:13).
Dawud judged between people, and Allah taught both him and his son Sulayman. The Quran mentions a case about a field in which a people's sheep had grazed by night: Allah gave Sulayman understanding of it, "and to each We gave judgement and knowledge" (21:78–79). The commentators explain that Dawud ruled that the sheep be given to the owner of the field for his loss, while Sulayman ruled that the owner of the sheep should restore the field, and meanwhile the field's owner would benefit from the sheep until it was restored.
The Quran also tells of two disputants who climbed over the wall of his prayer chamber and alarmed him. One said that his brother had ninety-nine ewes and he had only one, yet his brother demanded that one as well. Dawud said he had been wronged, and that many partners wrong one another, except those who believe and do good. Then Dawud realised that Allah had tested him. He asked his Lord for forgiveness, fell down bowing and turned to Him in repentance, and Allah forgave him and told him he had nearness to Him and a good return (38:21–25). The Quran does not say what the test was. Many scholars explain that it concerned his judging: he spoke after hearing only one side, before asking the other. Others give different explanations. Allah then told him: "O Dawud, We have made you a successor on the earth, so judge between people in truth and do not follow desire" (38:26). Ibn Kathir and other scholars warn that the stories told about this passage come from the People of the Book and are not authentic; they must not be attributed to a noble prophet. The Prophet ﷺ prostrated when reciting this passage (an authentic hadith in Sahih al-Bukhari).
Dawud also spoke against those of the Children of Israel who disbelieved and transgressed; they were cursed on his tongue and on the tongue of ʿIsa son of Maryam (5:78). Allah gave Dawud and Sulayman knowledge, and they praised Him for preferring them over many of His believing servants (27:15). The Quran does not describe Dawud's death; it tells us that Sulayman inherited from him (27:16).