BEIRUT (AP) — U.S. President Donald Trump said Monday that Israel and Hezbollah have agreed to dial back fighting after he held talks with Israeli Prime Minister Benjamin Netanyahu and communicated with the Lebanon-militant group through mediators.

Trump announced the development in a social media post following a call with Netanyahu, whose forces recently made their deepest incursion into Lebanon in more than a quarter-century. Trump there would be no Israeli troops "going to Beirut, and any Troops that are on their way, have already been turned back."

READ MORE: Israeli troops seize strategic castle in Lebanon during deepest incursion in decades

The president said Hezbollah had "agreed that all shooting will stop — That Israel will not attack them, and they will not attack Israel."

Moments after his message, Israel detected missile launches from Lebanon and warned Israelis in part of northern Israel to take cover in protected spaces.