stick to one's guns, to

stick to one's guns

Fig. to remain firm in one's convictions; to stand up for one's rights. (Fig. on a soldier remaining in place to fire a gun even when all appears to be lost.) I'll stick to my guns on this matter. I'm sure I'm right. Bob can be persuaded to do it our way. He probably won't stick to his guns on this point.
See also: gun, stick
McGraw-Hill Dictionary of American Idioms and Phrasal Verbs. © 2002 by The McGraw-Hill Companies, Inc.

stick to one's guns

Hold fast to a statement, opinion, or course of action, as in The witness stuck to her guns about the exact time she was there. This expression, originally put as stand to one's guns, alluded to a gunner remaining by his post. Its figurative use dates from the mid-1800s.
See also: gun, stick
The American Heritage® Dictionary of Idioms by Christine Ammer. Copyright © 2003, 1997 by The Christine Ammer 1992 Trust. Published by Houghton Mifflin Harcourt Publishing Company. All rights reserved.

stick to one's guns, to

To persist, to stand firm. Originally this term was (and in Britain still is) to stand to one’s guns and referred to a gunner’s obligation to remain at his post. By the mid-eighteenth century it was being used figuratively, as by James Boswell (Life of Johnson, 1791): “Mrs. Thrale stood to her gun with great courage in defense of amorous ditties.”
See also: stick
The Dictionary of Clichés by Christine Ammer Copyright © 2013 by Christine Ammer
See also: