There were several men named James Prentice born in Lanark, Scotland. One was born 4 July 1812 at Libberton, Lanark, Scotland whose parents are John and Jane (Hogg) Prentice.
Also James Prentice born 27 May 1805 Carnwath, Larark, Scotland whose parents are Thomas and Mary (Cassils) Prentice.
Do you have any more specific locality information beyond Lanarkshire meaning what town or city he was born in?
Another James Prentice was born 18 Jan 1817 Carnwath, Lanark, Scotland, parents James and Catharine (Brown) Prentice.
Also, James Prentice born 13 Mar 1806 christening 23 March 1806 at Dalziel, Lanark, Scotland. Parents are David and Janet (Lightbody) Prentice.
Scotland Births and Baptisms, 1564-1950 Familysearch.org