In the year 1820, a man named Dželaludin-paša became the
Ottoman pasha of Bosnia, a title he would hold until his brutal death in 1821. At first, Abdulvehab Ilhamija supported Dželaludin, believing him to be a fair and just ruler. But over a short period of time the illusion faded and Abdulvehab Ilhamija openly criticized Dželaludin's harsh rule over the Bosnian population in his poetry and writings. In 1821, Dželaludin became aware of Ilhamija's criticisms and invited him to his home in
Travnik. Ilhamija traveled without a horse, on foot from Žepče to Travnik. Before he left, he bid a final farewell to his family and friends, anticipating a grim ending to his meeting with the pasha. To this day, what happened in Travnik remains in the sphere of assumption. There is a legend that says that Dželaludin-paša asked of Ilhamija to renounce his critical writings, when Ilhamija refused to do so, he was either strangled to death or decapitated in the
Travnik Castle. News of his death was received with sorrow and revolt among the people. He was buried in Travnik in mausoleum near a former railway station and former hospital, where he remained buried for 138 years until 1959, when his bones and headstone were moved to a different grave. ==Partial list of works==