Mishkat
al-Masabih
مشكاة المصابيح
The Offices of Commander and Qadi
كتاب الإمارة والقضاء
Chapter 2c: How to Conduct the Office of Qadi, and Fear of it - Section 3
باب العمل في القضاء والخوف منه - الفصل الثالث
Mishkat al-Masabih 3739
‘Abdallah b. Mas'ud reported Allah'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 Allah 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.
عَنْ عَبْدِ اللَّهِ بْنِ مَسْعُودٍ قَالَ: قَالَ رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ: " مَا مِنْ حَاكِمٍ يَحْكُمُ بَيْنَ النَّاسِ إِلَّا جَاءَ يَوْمَ الْقِيَامَةِ وَمَلَكٌ آخِذٌ بِقَفَاهُ ثُمَّ يَرْفَعُ رَأْسَهُ إِلَى السَّمَاءِ فَإِنْ قَالَ: أَلْقِهْ أَلْقَاهُ فِي مَهْوَاةٍ أَرْبَعِينَ خَرِيفًا ". رَوَاهُ أَحْمَدُ وَابْنُ مَاجَهْ والْبَيْهَقِيُّ فِي شُعَبِ الْإِيمَان
In-book reference: Mishkat al-Masabih Book 18 Chapter 2c Hadith 1