The riddle
Why Is That Which Never Fails, Like a Strong Knot?
AnswerA certainty (a certain tie)
From The Boy's Own Book, 1834
Say it fast
Certain tie, said quickly, sounds the same as certainty. A tie is a knot or a fastening, and a strong knot is a certain one, because it will not slip. Something that never fails is certain, and certainty is exactly that. So a single phrase supplies both halves of the comparison, which is why the book prints the answer as a certainty with the sound-alike in brackets.
From 1834
The Boy's Own Book included it in its conundrum chapter. The bracket was the book's way of making sure a reader on paper would hear the pun.