Obstensibly this is the ghost of Darla sent by the Powers-That-Be in order to save the sacrifice and prevent the apocalypse. However an alternate theory is that this is actually The First Evil which is currently on Buffy trying to prevent Jasmine from interfering with its' plans.