三國遺事
The Samguk Yusa tells that Gyeongmun became a Hwarang with 18 years.