The Office of the Judge (Kitab Al-Aqdiyah)
Dawud :: Book 24 : Hadith 3571
Narrated Anas ibn Malik:
The Prophet (peace_be_upon_him) said: If anyone desires the office of Judge and seeks help for it, he will be left to his own devices; if anyone does not desire it, nor does he seek help for it, Allah will send down an angel who will direct him aright.