President Donald Trump criticized Israel’s military operations in Lebanon during his address at the G7 summit in France on Tuesday, stating that the country had been fighting Hezbollah “too long” and causing excessive civilian casualties.

In remarks delivered at the gathering, Trump noted that Israeli forces should not target residential areas where “there are a lot of people in those apartment houses, and they’re not all Hezbollah.” He suggested Israel permit Syria to take responsibility for addressing Hezbollah, adding: “I think they’d do a better job of doing it.”

The president also stated the recent strikes had placed a “negative light on the big deal” with Iran and warned Israeli Prime Minister Benjamin Netanyahu must be “more responsible with respect to Lebanon.” Trump described Sunday’s attacks as “too much,” emphasizing he had conveyed his disapproval to Netanyahu. According to Fox News reporter Trey Yingst, Trump reportedly asked Netanyahu during their conversation: “what the f are you doing?” following this weekend’s strikes.

Iran has previously stated that Israel must cease attacks in Lebanon as a condition for ending the three-and-a-half-month conflict with Hezbollah. However, Netanyahu declared on Monday that Israeli forces would remain in Lebanese territory “for as long as necessary.”

Trump reiterated U.S. support for Israel during his remarks: “Without the United States, there would be no Israel. Without me, there would be no Israel.” He also noted having a “great relationship” with Netanyahu but stressed the prime minister needed greater responsibility regarding Lebanon. Israeli officials reported troops are expected to stay in Lebanon because “Trump’s agreement does not bind us,” while Iran’s foreign minister warned any Israeli forces remaining in the country would violate the fledgling deal.