The Pine Tree Flag's phrase, "An Appeal to Heaven," was first used by John Locke in his Second Treatise on Civil Government, 1690, regarding the right of citizens who have been denied justice to go above the king's head:
"Where the body of the people ... is deprived of their right ... and have no appeal on earth, then they have a liberty to appeal to heaven ...
Where there lies no appeal on earth ... they have just cause to make their appeal to heaven ...
Where there is no judicature (justice) on earth, to decide controversies amongst men, God in heaven is judge.He alone, it is true, is judge of the right ...
So in this ... he should appeal to the Supreme Judge."