When are the following lines spoken?

If we shadows have offended,

Think but this, and all is mended,

That you have but slumber'd here,

While these visions did appear.

AWhen Hermia and Lysander are talking
BRight before Puck casts a spell on Bottom
CWhen Theseus and Hippolyta are talking about their wedding
DAt the very end of act 5