🔼The name Mattathias in the Bible
Both these men named Mattathias descend from Nathan, a son of David. The second one mentioned is both the great-great-great-great-great-great-grandfather of Jesus, and the great-great-great-great-grandson of the first one.
🔼Etymology of the name Mattathias
The name Mattathias is a Hellenized Hebrew name, possibly מתתיה (Mattathiah; this name does not occur in the Hebrew Bible). That name consist of two elements, the final one being יה (Yah) = יהו (Yahu) = יו (Yu), which in turn are abbreviated forms of the Tetragrammaton יהוה, YHWH, or Yahweh.
The first part of this name comes from the Hebrew verb נתן (natan) meaning to give, or rather the noun מתת (mattat), meaning gift or reward:
The name Mattathias means Gift Of The Lord, or more precisely: Gift Of Yah.