In "Time's Arrow", Samuel Clemens readily accepts that Data was from the future as he had written what 1889 novel about time travel and the use of future technology to solve past problems.
A Connecticut Yankee in King Arthur's Court