All nitrogen in the universe was formed by nulear fusion in the stars. The nitrogen that is outside the stars was spreaded in supernova explosions.