When was the earliest recorded Olympics competition held?

History Trivia: When was the earliest recorded Olympics competition held?