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.