There is no legitimate Sonic the Hedgehog time travel hack to download, and the search tends to run in circles for a straightforward reason.
Sega has never released anything of the kind. What exists in the fan community are ROM hacks, which are modified versions of the original games built by hobbyists. Some of them are genuinely inventive, and a few play with level order in ways that feel like time travel.
So the practical route is to look into the fan-hacking community, bring your own legally obtained copy, and be clear that nothing official is coming.