Ancestor by ancestor, as given in the biblical genealogies.
Who appears in the story just before and after this person (Patriarchs).
Shem Lot Sarah Abimelech Abraham Rebekah Leah Rachel Laban …
Gn 5:32After Noah was 500 years old, he had three sons, Shem, Ham, and Japheth.
Gn 7:13On that same day Noah and his wife went into the boat with their three sons, Shem, Ham, and Japheth, and their wives.
Gn 9:18The sons of Noah who went out of the boat were Shem, Ham, and Japheth. (Ham was the father of Canaan.)
Gn 9:23Then Shem and Japheth took a robe and held it behind them on their shoulders. They walked backward into the tent and covered their father, keeping their faces turned away so as not to see him naked.
Gn 9:26Give praise to the Lord, the God of Shem! Canaan will be the slave of Shem.
People, family relations and passages: TIPNR, STEPBible (Tyndale House, Cambridge), CC BY 4.0. People in the deuterocanonical books: MARBLE names list, United Bible Societies (UBS).