Full Sharh — Mishkat al-Masabih 3582
عَنْ عَبْدِ اللَّهِ بْنِ مَسْعُودٍ قَالَ: قَالَ رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ: " مَا مِنْ حَاكِمٍ يَحْكُمُ بَيْنَ النَّاسِ إِلَّا جَاءَ يَوْمَ الْقِيَامَةِ وَمَلَكٌ آخِذٌ بِقَفَاهُ ثُمَّ يَرْفَعُ رَأْسَهُ إِلَى السَّمَاءِ فَإِنْ قَالَ: أَلْقِهْ أَلْقَاهُ فِي مَهْوَاةٍ أَرْبَعِينَ خَرِيفًا ". رَوَاهُ أَحْمَدُ وَابْنُ مَاجَهْ والْبَيْهَقِيُّ فِي شُعَبِ الْإِيمَان
English Translation
‘Abdallah b. Mas'ud reported God’s Messenger as saying, “No judge who pronounces judgment among men will fail to come on the day of resurrection with an angel holding the back of his neck. He* will then raise his head to heaven, and if God gives orders to cast him down, he will cast him into an abyss forty years deep." Ahmad, Ibn Majah, and Baihaqi in Shu'ab al-lman transmitted it. *i.e. the angel.
Source
Mishkat al-Masabih(مشكاة المصابيح)
The Offices of Commander and Qadi
Hadith Number
3582