Ruth
Ruth was a Moabitess whose father, Elimelech, had settled in the land of Moab. On the death of Elimelech and Mahlon, Naomi came with Ruth, her daughter-in-law, who refused to leave her, to Bethlehem, the old home from which Elimelech had migrated. There she had a rich relative, Boaz, to whom Ruth was eventually married. She became the mother of Obed, the grandfather of David. Thus Ruth, a Gentile, is among the maternal progenitors of Jesus (Matt. 1:5).
This story is told in the Book of Ruth, a part of the Tanakh. It is generally believed this book was written to protest the ethnic cleansing policies prevalent during the restoration of Judah under the domination of the Persian Empire. During that time, there was a strong movement to expel all peoples who were deemed not to have a sufficiently Jewish ancestry to prevent a reemergence of the perceived pollution of foreign faiths that brought God's wrath on the nation.
The book opposed that attitude by trying to illustrate that foreigners can be just as faithful as any Jew to the point where they must surely have God's favour if their descendants can include such chosen ones as David.
Initial text from Easton's Bible Dictionary, 1897 -- Please update as needed