It is narrated from Sayyiduna Ibn Abbas (may Allah be pleased with them both) that the Messenger of Allah (peace and blessings be upon him) said: "Whoever is made the governor and person responsible over ten people, and then judges between them according to what they like or dislike, will be brought on the Day of Resurrection in a state where his hand is tied to his neck. Then, if he judged by other than what Allah has revealed, his shackle will be increased further; and if he judged by what Allah has revealed, and was neither unjust in his judgement nor took any bribe in it, his right hand will be released."
One of those who sat with Imam Ata (may Allah have mercy on him) said: "O Abu Muhammad! Is being shackled unavoidable?" He said: "Yes, by the Lord of this building!" and he pointed towards the Ka'bah.
Hadith Referenceالمعجم الأوسط / باب الميم / 6933
Hadith Gradingمحدثین:فيه سعدان بن الوليد لم يُعرف
Hadith Takhrij«قال الهيثمي: فيه سعدان بن الوليد ولم أعرفه «مجمع الزوائد ومنبع الفوائد، ج 5، ص 206»» «أخرجه الحاكم فى «المستدرك» برقم: 7161»