I read (at the site of the Ministry of Culture and Tourism) "According to the rumors, when IV. Murat is on his military campaign to Baghdath, he had a break in Eyyüp Nebi Village and stays for one night. He dreams that “ the place where you rest is the position of Prophet Eyyüp. Build a mosque and a mausoleum to the location where your horse whinns and hits his leg three times to the ground when you awoke”. "
I am not certain if this is the Murat mosque or a later version.