《明史·列传·卷二百一十七》
三月，朝廷设置哈密卫，任命哈密的头目马哈麻火等人分别为指挥、千户长、百户长等官职，又任命周安为忠顺王脱脱的长史，刘行为纪善，辅佐和引导他。
三月立哈密卫，以其头目马哈麻火者等为指挥、千百户等官，又以周安为忠顺王长史，刘行为纪善，辅导。
In March, the imperial court established Hami Guard and appointed the chieftains of Hami, Mahamahu and others, as commanding officers, thousand-household commanders, and hundred-household commanders respectively. It also appointed Zhou An as the Historiographer of Loyal and Obedient King Tuotuo, and Liu Xing as the Moralist to assist and guide him.