Amir Khusrav mentions that Abu Maʿshar came to Benaras ( Varanasi ) and studied astronomy there for ten years . Amir Khusrav mentions that Abu Maʿshar came to Varanasi ( Benaras ) and studied astronomy there for ten years .