[Machine] About a man who was whipped, is his testimony permissible? They said, yes, if repentance is shown from him. And from Ibn Shihab, that he was asked about a man, if he is whipped (as punishment), is his testimony permissible? He said, yes, if repentance is shown from him. Malik said, and that is the matter with us. Allah the Almighty said, "Except for those who repent after that and correct themselves. For indeed, Allah is Forgiving and Merciful." [Al Imran 89]. So, if the one who is whipped repents and corrects himself, his testimony is allowed.
عَنْ رَجُلٍ جُلِدَ هَلْ تَجُوزُ شَهَادَتُهُ؟ فَقَالَا نَعَمْ إِذَا ظَهَرَتْ مِنْهُ التَّوْبَةُ وَعَنِ ابْنِ شِهَابٍ أَنَّهُ سُئِلَ عَنْ رَجُلٍ إِذَا جُلِدَ الْحَدَّ هَلْ تَجُوزُ شَهَادَتُهُ؟ قَالَ نَعَمْ إِذَا ظَهَرَتْ مِنْهُ التَّوْبَةُ قَالَ مَالِكٌ وَذَلِكَ الْأَمْرُ عِنْدَنَا قَالَ اللهُ تَعَالَى {إِلَّا الَّذِينَ تَابُوا مِنْ بَعْدِ ذَلِكَ وَأَصْلَحُوا فَإِنَّ اللهَ غَفُورٌ رَحِيمٌ} [آل عمران 89] فَإِذَا تَابَ الَّذِي يُجْلَدُ الْحَدَّ وَأَصْلَحَ جَازَتْ شَهَادَتُهُ