Hazrat Hammad says that if it is time for prayer, there is no harm in offering Nafl (voluntary) prayers.