I'm aware of two examples from the late 19th century, as follows:
A Connecticut Yankee in King Arthur's Court (1889) by Mark Twain.
Tourmalin's Time Cheques (1891) by Thomas Anstey Guthrie (which is apparently the first story to play with the paradoxes that time travel could cause).
But the very fact that the first of those is comedy and the second has got as far as thinking about paradoxes tells me that they can't possibly be the earliest examples. There must be earlier, simpler forays before these.
no subject
A Connecticut Yankee in King Arthur's Court (1889) by Mark Twain.
Tourmalin's Time Cheques (1891) by Thomas Anstey Guthrie (which is apparently the first story to play with the paradoxes that time travel could cause).
But the very fact that the first of those is comedy and the second has got as far as thinking about paradoxes tells me that they can't possibly be the earliest examples. There must be earlier, simpler forays before these.