《新唐书·列传·卷六十八》
曾祖父元仁基，字惟固，曾跟随太宗征讨辽东，因功赏赐宜君一带的田地二十顷，辽地的人口并公母马各五十匹，授宁塞令，继承常山公爵位。
曾祖仁基，字惟固，从太宗征辽东，以功赐宜君田二十顷，辽口并马牝牡各五十，拜宁塞令，袭常山公。
His great-grandfather Yuan Renji, who was named Weigu, once followed Taizong to conquer Liaodong. As a reward, he was granted 20 hectares of land in Yijun, 50 people and 50 horses of both sexes in Liaodong, and awarded the title of Ningsilei and inherited the Duke of Changshan.