And Joseph saw Ephraim's children of the third generation. The children also of Machir the son of Manasseh were counted as Joseph's own.
#genesis 50:23 #vayekhi
Joseph adopted his grandson Machir much as Jacob adopted Joseph's two sons. This wasn't part of God's plan for the tribes of Israel, though, so Machir was counted with the children of Manasseh for the purposes of tribal identity and inheritance in the land.