They who can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety.
Franklin's Contributions to the Conference on February 17 (III) Fri, Feb 17, 1775
In 1755 (Pennsylvania Assembly: Reply to the Governor, Tue, Nov 11, 1755), Franklin wrote: "Those who would give up essential Liberty, to purchase a little temporary Safety, deserve neither Liberty nor Safety."
This phrasing was also the motto in Historical Review of Pennsylvania, attributed to Franklin
It's important to note that this sentiment, with many variations, was much used in the Revolutionary period by Franklin and others.