The first person to be appointed to this post was the justice Abû Yûsuf, the student of the great jurist Abû Hanîfah (may Allah have mercy on them both).
This office became widespread throughout the Muslim lands.