The condition of both the prime minister and his wife is assessed as good, both are now in their residence, following advice from the health authorities.
On Saturday, the Spanish government imposed a partial lockdown in the country for 15 days amid the coronavirus pandemic.
"A state of high alert will last 15 days, it can be extended with the permission of Congress. The competent authority will be the Government of Spain [...] During the state of high alert, people will be able to move around the streets only to purchase food, pharmaceuticals and essentials", Sanchez said in a statement.
Madrid and the surrounding region also registered the majority of cases overall, with 2,940 patients testing positive for COVID-19.
The authorities in the Catalonia region confirmed 509 cases of the infection there, while 417 cases were earlier registered in Basque Country.