Brazil's President Michel Temer arrives to a ceremony at the Planalto Palace in Brasilia, Brazil October 26, 2017. REUTERS/Adriano Machado

RIO DE JANEIRO (Reuters) - Brazilian President Michel Temer is recovering after a successful operation in a Sao Paulo hospital to reduce the size of his prostate, his office said in a statement late on Friday night.

Temer spent the night in the hospital in a semi-intensive care unit, the statement said.

He was admitted to an army hospital on Wednesday for tests and treatment after his doctor identified a urinary obstruction that was causing him pain.

Temer is set to receive Bolivian President Evo Morales on Monday.