山海経
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.