Al-Zuhri (may Allah have mercy on him) said: A false witness is to be given a discretionary punishment (ta'zir).