In the rather religiously inclined AKP government, I'm curious how credible this resignation reason is:
SADAT, officially the SADAT International Defense Consultancy, describes itself on its website as "the first and the only company in Turkey that internationally provides consultancy and military training services at the international defense and interior security sector."
It was founded by Adnan Tanrıverdi and has been a shady organization due to numerous reports on it training jihadists in Syria and Libya.
The group was also allegedly active in the thwarting of the July 15, 2016 failed coup attempt by taking up arms and fighting with putschists on the streets. Tanrıverdi was appointed as Erdoğan's advisor shortly after, but was forced to resign last year  after saying that the Mahdi - a "redeemer" in Islam who is to descend on earth and rule on judgement day - will return.
I'm aware that Erdogan himself was tried decades ago for reciting some religious-nationalist poem. But Turkey has changed a lot under his leadership, including a boom of religious education, Erdoğan inaugurating mosques etc. So, how commonly enforced are those laws [if they are still on the books] that prohibit[ed] such religious expressions by officials?
Alternatively, if I'm missing some other cultural/political subtlety here, why is saying that [the] "Mahdi will return" plausibly related to a Turkish official's reason for resignation? (Does it sound too much like something some proscribed group in Turkey would say, like ISIS or even the Gulenists? A bit more googling suggests that that might be something a Shia would say, so that might be a reason, but I'd like some confirmation that such a statement would be politically unwise in Turkey for that [precise] reason.)