Tafsir Ibn Kathir -> Surah An-Nisa -> The Order to Be Just

Allah said,

﴿وَإِذَا حَكَمْتُمْ بَيْنَ النَّاسِ أَن تَحْكُمُواْ بِالْعَدْلِ﴾

(and that when you judge between men, you judge with justice.) commanding justice when judging between people. Muhammad bin Ka`b, Zayd bin Aslam and Shahr bin Hawshab said; "This Ayah was revealed about those in authority'', meaning those who judge between people. A Hadith states,

«إِنَّ اللهَ مَعَ الْحَاكِمِ مَا لَمْ يَجُرْ، فَإِذَا جَارَ وَكَلَهُ اللهُ إِلى نَفْسِه»

(Allah is with the judge as long as he does not commit injustice, for when he does, Allah will make him reliant on himself.) A statement goes, "One day of justice equals forty years of worship.'' Allah said,

﴿إِنَّ اللَّهَ نِعِمَّا يَعِظُكُمْ بِهِ﴾

(Verily, how excellent is the teaching which He (Allah) gives you!) meaning, His commands to return the trusts to their owners, to judge between people with justice, and all of His complete, perfect and great commandments and laws. Allah's statement,

﴿إِنَّ اللَّهَ كَانَ سَمِيعاً بَصِيراً﴾

(Truly, Allah is Ever All-Hearer, All-Seer.) means, He hears your statements and knows your actions.

﴿يَـأَيُّهَا الَّذِينَ ءَامَنُواْ أَطِيعُواْ اللَّهَ وَأَطِيعُواْ الرَّسُولَ وَأُوْلِى الاٌّمْرِ مِنْكُمْ فَإِن تَنَازَعْتُمْ فِى شَىْءٍ فَرُدُّوهُ إِلَى اللَّهِ وَالرَّسُولِ إِن كُنتُمْ تُؤْمِنُونَ بِاللَّهِ وَالْيَوْمِ الاٌّخِرِ ذلِكَ خَيْرٌ وَأَحْسَنُ تَأْوِيلاً ﴾

(59. O you who believe! Obey Allah and obey the Messenger, and those of you who are in authority. If you differ in anything among yourselves, refer it to Allah and His Messenger, if you believe in Allah and in the Last Day. That is better and more suitable for final determination.)