According to medieval Arabic sources, Muhammad founded the city of Ganja in 859/60, so called because of a treasure unearthed there. According to the legend, the Arab governor had a dream where a voice told him that there was a treasure hidden under one of the three hills around the area where he camped. The voice told him to unearth it and use the money to found a city.