Namaz Before It's Time
Brother, your prayer is valid. However, to pray in jama’a is the Sunna and to habitually neglect the jama’a is sinful in all madhahib and compromises the validity of the prayer according to the more rigorist (the hanabila). If you hear the adhan, you should go to the mosque.