Made a mistake and feel guilty — how do I make peace with myself?

过去伤害过别人,现在学佛了非常后悔自责,常常夜不能寐,该怎么办?