From the book "Old Kittery and Her Families", it states that "David Hamilton came over as a Scotch prisoner in 1651. He bought 20 acres above St. Alban's cove in 1669".
This name is often written Hambleton. A David Hamilton came over as a Scotch prisoner in 1651. See Suffolk Deeds, I. 5, 6; also N. E. Reg. XLIV. 361-4. David Hamilton married, 1662, Anna Jackson and lived in what is now Rollinsford, N. H. He bought 20 acres above St. Alban's cove in 1669. "David Hamilton, Senr., dec'd" is mentioned in 1689, when the selectmen of Dover granted 20 acres to Thomas Pots "for keeping and maintaining David Hamilton, oldest son of David Hamilton the whole term of his life." ..
From "New England Families Genealogical and Memorial: Volume IV: "David Hamilton, the immigrant ancestor of this branch of the family, lived in the township of Hamilton, near Glasgow, Scotland. He was taken prisoner by Cromwell at the battle of Worchester, September 3, 1651, and with many others he was sent to this country by Cromwell as prisoner of war and sold into slavery. David sailed on the ship "John and Sarah" from Gravesend near London November 8, 1651 arriving in Charlestown, MA in April 1652. He worked for 5-10 years for his liberty, and then went to Dover, NH and settled in what is now the town of Rollinsford on the east bank of the Salmon Falls River, at a place called Newichawannock. He bought land in 1669. He lived here until killed by the Indians September 28, 1691 NOTE: another record shows he died in Maine). His name appears February 20, 1689 on a petition for defense against the enemy. He married at Saco, Maine, July 14, 1662 to Anna Jackson, daughter of Richard Jackson who came to America on the same ship and who was also a prisoner."
On the John and Sarah there were two other Hamilton men. Rory and James. These potentially could be the brothers of David BUT there is not documentation found for this.
Another link:
http://familytreemaker.genealogy.com/users/h/a/m/Jack-a--pamela-j-Hamilton/FILE/0002text.txt