Lincoln was a Whig before he was a Republican. Not today's Republican, but a pro-Unionist organisation.
"Lincoln's early Whiggery was bound up with his admiration for the Kentuckian Clay, "my beau ideal of a statesman," as Lincoln called him. Clay's integrated economic program, termed "the American System," won Lincoln's endorsement. Clay was a role model as well as a political leader for Lincoln; he, too, was a self-educated, self-made man. "During my whole political life, I have loved and revered [Clay] as a teacher and leader," Lincoln acknowledged after his election as president.
[20] Clay was a well-known figure among Springfield Whigs, many of whom, like Lincoln himself, came originally from Kentucky.
[21] Perhaps Lincoln found in Clay a father figure more satisfactory than his real father. In 1842 Lincoln married into the Kentucky patriciate, just as Clay had done earlier. His marriage to Mary Todd strengthened Lincoln's ties to the Clay wing of the Whig party, for his wife's family were on good personal terms with their senator."
https://quod.lib.umich.edu/j/jala/2...ham-lincoln-was-a-whig?rgn=main;view=fulltext