When was the first reserve clause in baseball?

The first reserve clause in baseball was in 1879.

Arthur Soden introduced the reserve clause to bind the teams top five players on each team to prevent wealthier teams from acquiring good players. It was later expanded to all players.