The Master said of Gong Yechang, “He is marriageable. Although he was once imprisoned and branded as a criminal, he was in fact innocent of any crime.” The Master gave him his daughter in marriage. (Analects 5.1)
Guide them by edicts, keep them in line with punishments, and the common people will stay out of trouble but will have no sense of shame. Guide them by virtue, keep them in line with the rites, and they will, besides having a sense of shame, reform themselves.