When Ali bin Abi Talib becomes Judge