It was standard practice, but I can't remember in what system. Bonus points if it has a proper name: The humiliating speech someone is obligated to give renouncing their prior convictions or political beliefs, possibly when being sentenced for political crimes or freed after such a sentence?

by xilanthro
PaintedScottishWoods

What region are you thinking of? Chinese emperors sometimes issued Repenting Edicts, sometimes after being defeated, but I'm guessing you're referring to lower-ranking people