辽史
The History of Liao gives an extended version of the account: