The Israeli parliament approved the law on Monday by a narrow majority.
Mr Abbas was elected president of the Palestinian Authority in 2005.
This took place as ground operations expanded in the Palestinian territory.
Mr Herzog’s office quoted the Israeli president as saying, “Welcome, Mr President. God bless you for protecting the nation of Israel.”
Hamas is classified as a terrorist organisation by the European Union, the United States, and Israel.
The talks centred around the need not to expand the conflict as well as access for “innocent civilians” to water, food, and medical care.
Police said the young Palestinians were trying to prevent worshippers from leaving the mosque, but authorities eventually cleared the way.
Palestinian President Mahmoud Abbas says he will convey the voice of Jerusalem and Palestinian citizens’ suffering under Israel’s occupation to the Arab League Summit.
U.S. President Joe Biden has kicked off his first visit to the Middle East since he assumed office 18 months ago with his first arrival in Israel.
The recent spate of violence has marked the bloodiest week in Israel for 16 years.
