The ministry said it hopes for the success of the ongoing rescue efforts, and also wishes the injured a speedy recovery.
Desperate relatives waited all night in the cold outside the state-owned TTK Amasra Muessese Mudurlugu mine in the town of Amasra on the Black Sea coast, hoping for news.
Interior Minister Suleyman Soylu said Saturday that 40 miners were confirmed dead, 11 injured and 58 others unharmed. The status of one remaining miner was unclear.
Energy Minister Fatih Donmez said rescue efforts were almost complete. Earlier he had said that a fire was still burning in the mine's gallery where more than a dozen miners had been trapped. Work to isolate and cool the fire continued, he said.
Preliminary assessments indicated that the explosion was likely caused by firedamp, which is a reference to flammable gases found in coal mines, Donmez said overnight.
A miner who works the day shift said he saw the news and hurried to the site to help with the rescue. “We saw a frightful scene, it cannot be described, it is very sad,'' said Celal Kara, 40. “They are all my friends... they all had dreams,” the miner of 14 years said after exiting the mine, his face covered in soot.
Ambulances were on standby at the site. Rescue teams were dispatched to the area, including from neighbouring provinces, Turkey's disaster management agency, AFAD, said.
Turkiah President Recep Tayyip Erdogan was expected to visit Amasra on Saturday.
Separately, the Turkish police headquarters said in a statement that legal action would be taken against 12 online users who allegedly shared provocative content about the mine explosion to incite hate on social media.
Turkey's worst mine disaster was in 2014, when 301 people died in a fire inside a coal mine in the town of Soma, in western Turkey.