 Ibn Hāni' was born in one of these two towns.He studied in Córdoba and then proceeded to Elvira and Seville.In the latter city, his frivolous way of living and too free speech brought upon him the wrath of the people who accused him of agreeing with the Greek philosophers and of heresy, so that he was counseled by the local ruler, a supporter, to leave Seville as he was afraid of being suspected of allying with him.