Prime Minister Shinzo Abe told Iranian President Hassan Rouhani in New York on Tuesday that Japan continues to support a 2015 agreement on Iran's nuclear program, shortly after U.S. President Donald Trump slammed the deal in a speech at the U.N. General Assembly.

According to a senior Japanese official, Abe told Rouhani it is important for all countries involved to comply with the deal, which was reached by Iran and six major powers, including the United States, in 2015 under Trump's predecessor, Barack Obama.

Tehran agreed to curb its nuclear development activities under the deal in exchange for the withdrawal of sanctions.