Correct aphorism is: “Never use a preposition to end a sentence with.”
I heard it was “Never use a preposition to end a sentence with, damn it.