Jamid Masjid Criteria
No there are no instructions from Allah in this regard The conditions stems out of etiquette. 1) The land is pure that is free of filth 2) Land is acquired legally and by fair payment 3) It should not cause inconvenience to others.