This tells me only of the punishment and the exhortation for the labor of the day. Whence do I derive (the same for) the labor of the evening? From "Those who profane it shall be put to death." We have heard the punishment. Whence the exhortation? It is, therefore, written "And the seventh day is Sabbath to the L–rd your G–d. Let "Sabbath" not be written (i.e., it is obvious). Why is it written? To include the evening. These are the words of R. Yossi b. R. Yoshiyah.
Where Is the Nighttime Warning? and the Seventh Day Is Sabbath
Mekhilta Tractate Shabbata 1:16