KABUL, Nov. 22 (Xinhua) -- U.S. President Donald Trump has invited his Afghan counterpart Mohammed Ashraf Ghani to visit the United States which was accepted by the latter, said a statement of Presidential Palace released here Friday.

The invitation was extended during a telephone conversation in the United Arab Emirates where President Ghani was on an official visit on Thursday, according to the statement.

"During the talks the U.S. president expressed gratitude to Afghan President Ghani over his cooperation in releasing two professors of American University of Afghanistan (AUAF) and also praised Afghan security forces in defeating the Islamic State group's fighters in the eastern Nangarhar province," the statement further said.

More than 600 members of the Islamic State group and their families including women and children have surrendered to security forces in Nangarhar over the past couple of weeks, according to officials.

The Taliban outfit set free two lecturers of AUAF including an American and an Australian on Tuesday as part of the prisoners' swap for three high-level Haqqani group's leaders to accelerate the peace process in Afghanistan.