Sayyiduna Anas (may Allah be pleased with him) narrates that he heard the Messenger of Allah (peace and blessings be upon him) say: "Whoever seeks the office of judge and seeks (people's) help to obtain it is left to it (on his own); and whoever neither seeks it nor seeks help to obtain it, Allah Almighty sends down to him an angel who guides him and keeps him upright."
Abu Khaythamah Zuhayr (may Allah have mercy on him) narrates it from Yahya bin Hammad (may Allah have mercy on him), from Abu Awanah (may Allah have mercy on him), from Abd al-A'la (may Allah have mercy on him), from Bilal bin Mirdas (may Allah have mercy on him), from Khaythamah (may Allah have mercy on him), from Sayyiduna Anas (may Allah be pleased with him).