Jami` at-Tirmidhi, Book 15, Hadith 3 (Tirmidhi 1336)

Anas bin Malik narrated that the Messenger of Allah (sallAllahu Alayhi wa sallam) said:

"Whoever asks for a position as a judge, then he left on his own. And whoever is forced onto it, Allah sends an angel down to him so that he can be correct." (Daif)