PARIS — In an unexpected move, President François Hollande of France granted a full pardon on Wednesday to a woman who had been sentenced to prison for murdering her husband after decades of domestic abuse.

The woman, Jacqueline Sauvage, was found guilty by a criminal court in 2014 of shooting her husband, Norbert Marot, three times in the back with a hunting rifle in 2012. She was sentenced to 10 years in prison.

“The president of the republic has estimated that Ms. Sauvage’s place was no longer in prison, but with her family,” said a statement from the president’s office announcing her full pardon. Mr. Hollande had commuted part of her sentence in January.

Ms. Sauvage was released from a prison near Paris within hours of the announcement.

“I’m deeply shaken, I wasn’t expecting it,” Carole Marot, one of Ms. Sauvage’s daughters, told French radio. “An infinite thanks to the president of the republic.”