Searching for the Truth; Philosophy in Islam

If one could roam around 9th century Baghdad, one could hear a phrase that would bring a headache to many present-day devoted Muslims. “The ink of a scholar is more important than the blood of a martyr”. How come those words derived from the collective memory of the prophet’s teachings fell out of prominence in the years to come and when did seeking the truth though philosophy became irrelevant?