The Israeli foreign minister said Mr. Lula was not welcome in the country until he took back remarks comparing Israeli actions in the war against Hamas to the Holocaust.
His winding social media post on Monday contained no reference to Vladimir V. Putin, the Russian president, who has been widely condemned after the death of one of his most vocal critics, Aleksei A. Navalny.
Dozens of countries are expected to argue before the International Court of Justice about the legality of Israeli actions in the West Bank and East Jerusalem.