To Be Fair and Just, This Is a Must
Imām Ibn Taimiyyah, may Allāh have mercy on him, said:
Justice necessitates that [Islamic] knowledge precede it, since one who doesn’t have knowledge, doesn’t know what justice is; people [as a general rule] are unjust, oppressive, and ignorant except those whom Allāh has guided to true repentance, [who] then became knowledgeable and just.
Majmūʿ Al-Fatāwá, vol. 18, p. 169.