The return from the Babylonian exile brought the critical issue of priestly lineage to the forefront. Historical marriages and the adoption of prominent family names had blurred the lines of ancestry, creating deep confusion regarding who legitimately belonged to the priesthood. Among those claiming priestly status were the families of Habaiah, Hakkoz, and Barzillai [מצודת דוד, ביאור שטיינזלץ].
The primary approach among commentators is that the patriarch of the Hakkoz family married a daughter of Barzillai the Gileadite, a highly respected and prominent figure [אבן עזרא]. Out of deep admiration for his status, the family chose to adopt their maternal grandfather's name. However, this decision created a profound historical complication. Hakkoz was originally a distinguished priestly family, but by taking the name Barzillai, their true identity became obscured. Over the years, as their genealogical records were lost, doubts arose about whether they were actual priests or ordinary Israelites descended from Barzillai. This uncertainty ultimately led to their disqualification from serving in the priesthood. Having lost their formal status, they likely stopped adhering to the strict marriage laws required of priests, which permanently disqualified their descendants [מלבי"ם].
In contrast to this historical view, a sharp midrashic tradition interprets these family names as severe criticism of their actions. According to this perspective, the name Habaiah indicates that these children became guilty before God. Similarly, the name Hakkoz suggests that although they were originally as beautiful as a date palm, they reduced themselves to a mere thorn. This spiritual decline is attributed to their marriage into the Barzillai family, which this tradition views as steeped in immorality and sin. The ultimate failure of these priests was their willing choice to adopt the Barzillai name, an act seen as a deliberate abandonment and disrespect of the holy legacy of Aaron the Priest [רב סעדיה גאון].