How can I prevent automatic unit cycling?

You can turn off automated unit cycling by editing the UserOptions.txt file, which if you're on windows should be located inside of my games\Sid Meier's Civilization VI. Open that file with a text editor and then edit the following line (should be line 60):

AutoUnitCycle 1

You want to change that 1 to a 0, like so:

AutoUnitCycle 0

Hopefully this will eventually be added to the User Interface, but for now you'll just need to edit this file.

Source