We learn from Byam Darkecha about erev Shabbos leading up to doing shnayim mikra as preparation for the light of Shabbos