During a negative beta decay,

Negative beta decay is a process in which an unstable nucleus, formed with more number of neutrons than needed for stability, tries to go towards stability by converting a neutron to a proton. In this process, the unstable nucleus emits an electron and an antineutrino i.e. . Thus, we can say that a neutron in the nucleus decays, emitting an electron.

1