if you have an enemy hero prisoner, you can just release them for nothing. when you do that, the message shown at the bottom left corner says you released them 'because of peace declaration.' of course it is nothing to do with the actual peace declaration made between two kingdoms, nor does this action reward you with an increase in relations with anyone.