qnli question: What two cities were at war during this time? sentence: The new emir of Hamadan, hearing of this correspondence and discovering where Ibn Sina was hiding, incarcerated him in a fortress.