Prophet Dawood (peace be upon him) once prayed to God to make manifest for him one of His judgments that He would issue on the Day of Judgment.
God revealed to him: You have sought from Me a thing which I have not manifested before anyone; it does not befit anyone to judge in that manner except Me.
However, when Prophet Dawood (peace be upon him) once again repeated his request, Jibraeel descended and said: You have requested God for something which none of the Prophets before you has ever requested; nonetheless God has answered your prayer. In the first case that shall come up before you for judgment, the ruling of the hereafter shall become manifest before you.
The next morning as Prophet Dawood sat in his court, an old man entered bringing along with him a youth, who held a bunch of grapes in his hand.
The old man said: O’ Prophet of God! This youth entered my garden, spoilt my trees and ate my grapes without my permission.
Turning to the youth, Dawood (peace be upon him) questioned: What do you have to say? The youth confessed to having done so without the old man’s permission.
At that moment God revealed to Dawood (peace be upon him): If you were to pass judgment according to the ruling of the hereafter, the Bani Israel would never accept it; (for) O’ Dawood! This garden belongs to the father of this youth. This old man had entered the garden, killed the youth’s father and stole forty thousand dirhams that belonged to them, which he has buried in the corner of the garden. So hand a sword to the youth and ask him to behead the old man as retaliation for the murder of his father, then hand over the garden to him and ask him to dig the garden at such and such location and extract the property which belongs to him.
Prophet Dawood (peace be upon him) proceeded to execute the judgment as commanded to him by God, the Exalted. ( Hayaat al-Quloob, vol. 1, pg. 333. )