Where is the earliest masjid located in Sub-Continent?

Where is the earliest masjid located in Sub-Continent?

برصغیر کی قدیم ترین مسجد کہاں واقع ہے ؟
Explanation

Bhambore is a historical site from Hindu times. It is considered a key historical town of debal, which was taken over by conquering Muslim armies from Arab under the banner of Muhammad bin Qasim

The old temple site and the first masjid in Indian sub continent are not too far apart. 

Location : Sindh , Pakistan 

Abandoned: After 13th Century AD