The story
First appeared in Thomas Reid’s Essays on the Intellectual Powers of Man, published in 1786. The full idiom a chain is no stronger than its weakest link was first printed in Cornhill Magazine in 1868.
Etymology from Wiktionary, CC BY-SA 4.0.