يَـٰٓأَيُّهَا ٱلَّذِينَ ءَامَنُوا۟ كُونُوا۟ قَوَّٰمِينَ بِٱلْقِسْطِ شُهَدَآءَ لِلَّهِ وَلَوْ عَلَىٰٓ أَنفُسِكُمْ أَوِ ٱلْوَٰلِدَيْنِ وَٱلْأَقْرَبِينَ ۚ إِن يَكُنْ غَنِيًّا أَوْ فَقِيرًا فَٱللَّهُ أَوْلَىٰ بِهِمَا ۖ فَلَا تَتَّبِعُوا۟ ٱلْهَوَىٰٓ أَن تَعْدِلُوا۟ ۚ وَإِن تَلْوُۥٓا۟ أَوْ تُعْرِضُوا۟ فَإِنَّ ٱللَّهَ كَانَ بِمَا تَعْمَلُونَ خَبِيرًا Qur’an An-Nisaa' (4:135)Ya ayyuha allatheena amanoo koonoo qawwameena bialqisti shuhadaa lillahi walaw AAala anfusikum awi alwalidayni waalaqrabeena in yakun ghaniyyan aw faqeeran faAllahu awla bihima fala tattabiAAoo alhawa an taAAdiloo wain talwoo aw tuAAridoo fainna Allaha kana bima taAAmaloona khabeeran
I.e.. "do not allow the fact that a man is rich to prejudice you in his favour or against him, and do not, out of misplaced compassion, favour the poor man at the expense of the truth".
Some people may be inclined to favour the rich, because they expect something from them. Some people may be inclined to favour the poor because they are generally helpless. Partiality in either case is wrong. Be just, without fear of favour. Both the rich and the poor are under Allah's protection as far as their legitimate interests are concerned, but they cannot expect to be favoured at the expense of others. And He can protect their interests far better than any man.
When the emigration took place from Makkah to Madinah, bonds and links of brotherhood were established between the Emigrants and the Helpers, and they shared in each other's inheritance. Later, when the Community was solidly established, and relations with those left behind in Makkah were resumed, the rights of blood-relations in Makkah, and the Helper-brethren in Madinah were both safeguarded. This is the particular meaning. The more general meaning is similar; respect your ties of blood, of neighbourhood, and of friendly compacts and understandings. Be just to all.