Lyon striker Alexandre Lacazette scored the only goal of the match as his team beat Marseille 1-0 at the Stade Velodrome on Saturday.
The win means that Lyon have now won their last three matches and are just two points behind leaders Monaco.
Marseille, who had lost their previous four games, were not able to find a way past Lyon's defense.
Hernandez, who has been in excellent form for the French champions this season, was given the task of scoring in the match and he did not disappoint.
He controlled the ball well and then sent it into the back of the net with a powerful shot.
It was a well-deserved victory for Lyon, who have now won seven of their last eight matches.
The result will be a huge boost for them going into the final stages of the Ligue 1 season.
However,Ligue 1 Focus they will need to be careful against some of the top teams in the league, including Paris Saint-Germain and Bordeaux, who are still in the hunt for the title.
Despite the loss, Marseille manager Rudi Garcia is optimistic about the future of his team.
"We have to keep working hard and improving," he said.
"It's not easy to win games like this but we're not giving up."
