When working with or near batteries there are precautions that need to be taken. You must ensure that you have the correct PPE. Keep any ignition sources away from the battery while it is charging, this includes hot objects, electrical equipment and mobile phones.
When charging a battery make sure it is in a designated and well ventilated area. Do not overcharge the battery, once the battery is charged stop charging it.