See the federalist papers on pardons, the federalist papers specifically contemplate a pardon offer in the face of an insurrection. Obviously pre-arrest, pre-conviction.
Post war we have a blanket pardon for the vast majority of Confederates.
We also have Ford pardoning Nixon before conviction.