Classic of Mountains and Seas
According to the Classic of Mountains and Seas, Yan Long (晏龙), a minister of Emperor Yao is the earliest ancestor of the Yan surname on record.