Not quite but sort of...... A
Switch in Time by Coalitiongirl.
Four years after Sunnydale, Buffy must travel back in time to stop Glory and avert the destruction of the world. But there's a catch- she's been accidentally put in the wrong body. She's got all the information necessary to ensure a happily ever after for her friends and herself.
But who's going to listen to Anya?Then in a completely unrelated rec, read
Embers ( a post S8 fic.... yeah yeah) and praise it with all your might. 'Tis a little gem and hasn't been followed much on this site. Sterling fix up of most of S8 excesses....
(If this is inappropriate, sorry Pari)