ذَٰلِكَ أَدْنَىٰ أَن يَأْتُوا بِالشَّهَادَةِ عَلَىٰ وَجْهِهَا أَوْ يَخَافُوا أَن تُرَدَّ أَيْمَانٌ بَعْدَ أَيْمَانِهِمْ ۗ وَاتَّقُوا اللَّهَ وَاسْمَعُوا ۗ وَاللَّهُ لَا يَهْدِي الْقَوْمَ الْفَاسِقِينَ (108)
(5:108) Thus it is more likely that they will either bear the right testimony or else they will at least fear that their oaths may be rebutted by other oaths. Have fear of Allah and pay heed. Allah does not direct the disobedient to the right way.