The recording broadcast by terror accounts on social networks was part of a general appeal to extremists around the world to continue their attacks during the Muslim holy month of Ramadan.
"Children of the caliphate in eastern Asia, we congratulate you for taking Marawi," ISIS spokesman Aboulhassan al-Mouhajer said, referring to the Philippine city seized by terror militants last month.
Thousands of Philippine troops are battling hundreds of insurgents who overran the southern city on May 23, flying black ISIS flags and using up to 2,000 civilians as human shields.
Fierce fighting in the city has left a total of 58 soldiers and police and more than 20 civilians dead, according to the military which estimates that almost 200 terrorists have been killed.
The ISIS spokesman also congratulated the perpetrators of last week's attacks in Iran.
Seventeen people were killed and dozens wounded when armed men and suicide bombers attacked Tehran's parliament complex and the shrine of revolutionary leader Imam Khomeini on June 7, the first strikes claimed by the group in Iran.
The five attackers were killed.