Messi, 35, was to be discharged from hospital later Monday and transferred to his home in Rosario, 300 kilometers (190 miles) north of the capital Buenos Aires, head of the prosecutor's office for Cybercrimes and Weapons Lucas Altare said.
He was taken to hospital with facial injuries after being found in a drifting and blood-stained motorboat on November 30, apparently after colliding with a sandbank. He was arrested for possession of a firearm found in the boat.
"The guarantor of this house detention agreement is his father, Jorge Messi," said Altare, the prosecutor.
Family lawyer Ignacio Carbone told reporters that the defendant "is a good person, he's not going to go on the run.