A Judge Accepting Gifts
Regarding a judge accepting gifts, the scholars say that it is not permissible for him to accept a gift without two conditions, and these two conditions are: the gift must be from someone who used to give him gifts even before he reached this position, and the second condition is that the one giving the gift must have no ruling (or case) pending before him.
If the giver was not among those who gave him gifts before this position, then it is not permissible for him to accept his gift, because he gave him this gift on account of his holding this position. So he is like that agent and employee whom the Prophet ﷺ sent to collect the zakat wealth, whose name was Abdullah ibn al-Lutbiyyah. When he returned, he said: “This is yours, and this was given to me as a gift.” The Messenger ﷺ said:
“Why did he not stay in the house of his father or his mother, and then see whether he would be given a gift or not?”
And if the giver has a ruling or a case pending before the judge to whom he is giving the gift, then there is a fear that this person is offering a bribe in order to get a ruling of his choosing. It is also a common matter that the one who is given a gift inclines toward the giver and has no desire to reflect upon and investigate his claim and his affair. Therefore, it is not permissible for a judge to accept a gift without these two conditions:
First condition: it must be from a person who used to give him gifts even before he was established in this office.
Second condition: the giver of the gift must have no case under hearing.