Rashi on Exodus
1:1א׳:א׳
1 א

ואלה שמות בני ישראל. אַעַ"פִּ שֶׁמְּנָאָן בְּחַיֵּיהֶם בִּשְׁמוֹתָם, חָזַר וּמְנָאָם בְּמִיתָתָם, לְהוֹדִיעַ חִבָּתָם, שֶׁנִּמְשְׁלוּ לְכוֹכָבִים, שֶׁמּוֹצִיאָם וּמַכְנִיסָם בְּמִסְפַּר וּבִשְׁמוֹתָם (שמות רבה), שֶׁנֶּ' "הַמּוֹצִיא בְמִסְפָּר צְבָאָם לְכֻלָּם בְּשֵׁם יִקְרָא" (ישעיהו מ'):

ואלה שמות בני ישראל NOW THESE ARE THE NAMES OF THE CHILDREN OF ISRAEL — Although scripture has already enumerated them by name whilst they were living, when they went down into Egypt (Genesis 46:8-27), it again enumerates them when it tells us of their death, thus showing how dear they were to God — that they are compared to the stars which also God brings out and brings in by number and name when they cease to shine, as it is said, (Isaiah 40:26) “He bringeth out their host by number, He calleth them all by name” (Exodus Rabbah 1:3; Tanchuma Yashan 1:1:2).