May 29, 2017 0500 GMT
Troops and allied militiamen retook the Hama Province villages of Aqareb and Al-Mabujeh a day after the Daesh assault, the so-called Syrian Observatory for Human Rights said, AFP reported.
The Daesh attack killed 25 civilians, including five children, and 27 pro-government fighters, the Britain-based monitor said.
At least three of the civilians, a man and his two children, were executed with knives, it added.
The observatory reported 10 Daesh terrorists killed in the assault, which began at dawn on Thursday and saw terrorists briefly seize all of Aqareb and parts of Al-Mabujeh.
State news agency SANA said 52 people had been killed, among them 15 children, adding that many of the dead had been beheaded and mutilated.
The two villages are home to members of several religious minority sects, and Al-Mabujeh has been targeted by Daesh before.
In March 2015, the group killed dozens of people and kidnapped some 50 civilians in an attack there.
Daesh is on the defensive across most of the territory it still holds in Syria, with an alliance of Kurdish and Arab fighters pressing toward its most important bastion, Raqa in the north.
The army is also battling the terror group in the eastern part of Aleppo Province.
The observatory said at least 22 government troops and allied militiamen and 40 Daesh terrorists had been killed in clashes in the area in the past 24 hours.
And in the eastern city of Deir Ezzor, which is largely under Daesh control, terrorist shelling of a government-held neighborhood killed at least 14 people, the monitor said.
A dozen people were also wounded by the artillery fire, which hit a wedding party.