"ENROLL THE CHILDREN OF LEVI, etc." (Numbers 3:15). This is what Scripture says: "The righteous one shall flourish like the palm" (Psalms 92:13). Just as this palm—its shade is far off, so the giving of the reward of the righteous is far off. Just as this palm produces dates and produces unripe dates (novelot), so it is with Israel: among them are sons of Torah and among them are ignorant folk (amei ha-aretz). Just as this palm has within it unripe dates that do not enter the storehouse, yet produces dates, and these do enter the storehouse, so it was with Israel when they were in the wilderness: some of them entered the land of Israel, and some of them did not enter.
The Palm and the Righteous in the Census of Levi
Midrash Tanchuma Buber, Bamidbar 17:1
פקוד [את] בני לוי וגו' (במדבר ג טו). זש"ה צדיק כתמר יפרח (תהלים צב יג), מה התמרה הזו צלה רחוק, כך מתן שכרן של צדיקים רחוק, מה התמרה הזו עושה תמרים ועושה נובלות, כך הן ישראל יש בהן בני תורה ויש בהן עמי הארץ, מה התמרה הזו יש בהן נובלות שאינן נכנסים לאוצר, ועושה תמרים והן נכנסין לאוצר, כך ישראל כשהיו במדבר, מהן נכנסו לארץ ישראל, ומהן לא נכנסו.