 He retired on 27 November 1983.Hernández played 31 matches for Costa Rica and scored 5 goals.He represented his country in two FIFA World Cup qualification matches and also played for Costa Rica at the 1980 Summer Olympics.