A suicide bomber detonated an explosive device just after the mosque, said a prayer.
Othman Abubakar, a spokesman for the police, told reporters the dawn attack was perpetrated by an unidentified teenage boy who set off the suicide vest he wore to the mosque in Kunu Araha, a suburb town of Mubi in the northern state of Adamawa.
The terror group has killed more than 20,000 people and forced around 2 million people to flee their homes.
Trump Administration Ending Temporary Protection Status For Haitians
The Homeland Security secretary can designate countries for temporary TPS in cases of war, famine, epidemics or natural disasters. Under TPS, Haitian nationals have been able to remain in the United States since 1999 under the temporary amnesty program.
Haruna Furo, head of the Adamawa state emergency management agency, and Musa Hamad Bello, chairman of the Mubi north local government area, both confirmed the attack.
"I was there when the rescue was on and 40 people died on the spot and several others were taken to hospital with severe and life-threatening injuries", he added.
"This is obviously the work of Boko Haram".
Roger Waters, Brian Eno Criticize Nick Cave for Israel Concerts
He continued, "I understood that I wouldn't sign but I also wouldn't perform in Israel - and that seemed like I was acting scared. Cave, however, explained he believes the movement is an attempt to bully musicians and artists by removing their expression.
Mubi is in Adamawa state, where Boko Haram held territory until the Islamist militants were pushed back by troops in early 2015.
Most attacks by the group focus on Borno state, the birthplace of the insurgency.
"Seven Boko Haram on two motorbikes met them and slaughtered two, then killed the other four".
Kim Kardashian Fires Longtime Assistant Stephanie Shepherd
The same source has said that Steph is still friends with Kim's sisters, but that her and Mrs. She feels like maybe she's in a place in life where she's unfulfilled, job-wise.
The attack early Tuesday was the first in the town since it was recaptured from Boko Haram three years ago.