Muhammad (may Allah have mercy on him) saw no harm in a judge receiving payment from the public treasury (Bayt al-Mal).