The first video game ever created was Tennis for Two, though it was never actually released to the public.
Space War came a bit later and did see an official release. So while Tennis for Two holds the title of the first, Space War was among the earliest to reach players.