MB3 43a Hashkiveinu on Shabbos (267:2-3); Accidentally Saying Weekday Shmoneh Esrei on Shabbos (268:1-2)

The ending of Hashkiveinu in Maariv on Shabbos and saying V'Shamru.

What if you accidentally said the weekday amidah on Shabbos?