From then on, Yan Qing waited on Li Shishi in her residence, and the two were deeply attached to each other. Seeing that the time was ripe, Yan Qing took out Song Jiang's petition for amnesty and enlistment and explained in detail Liangshan's aspiration to act on behalf of Heaven, not to rebel against the court, but only to hope for imperial amnesty and willingness to render service to the nation. Li Shishi, upon hearing this, said, 'This matter involves great responsibility. Wait a moment; when the Emperor comes, I will find a way to recommend you.'
A few days later, the Son of Heaven indeed went incognito, accompanied by only a few eunuchs, to Li Shishi's residence. Yan Qing, having been informed earlier by Li Shishi, hid in a secret place. The Son of Heaven was in the rear hall, drinking and enjoying entertainment with Li Shishi. Half intoxicated, Li Shishi said, 'There is a concern in my heart that I must express to find relief.' The Son of Heaven asked what the matter was, and Li Shishi briefly recounted Yan Qing's story, adding, 'There is a servant in my house who is handsome and skilled in music and painting, but because of his humble origins, I dare not present him hastily to Your Majesty.' Upon hearing this, the Son of Heaven indeed became curious and ordered her to summon him.
Yan Qing walked out from the rear hall and knelt down, touching his forehead to the ground. Seeing Yan Qing's extraordinary bearing, the Son of Heaven asked, 'What skills do you possess?' Yan Qing replied, 'I have no other talents; I only know a little reading and have a rough understanding of the qin and chess.' The Son of Heaven then ordered him to compose a poem on the spot. Yan Qing pondered briefly and then recited a few lines, aiming to express loyalty and righteousness. After hearing this, the Son of Heaven asked him why he was kneeling. Yan Qing replied, 'I am Yan Qing, subordinate of Song Jiang of Liangshan, who has come specifically to meet Your Majesty and present my elder brother's petition for amnesty and enlistment.' Saying this, he took the petition from his bosom and presented it.
After reading Song Jiang's petition and learning of the loyal and righteous intentions of Liangshan, the Son of Heaven was deeply moved. But since it was a matter of rebels, he could not agree immediately, so he said to Yan Qing, 'I am aware of this matter. You may withdraw and allow me to consider it.' Yan Qing knocked his head on the ground to express gratitude. The Son of Heaven then instructed Li Shishi, 'You must keep this matter secret for me; do not let it leak out.' Li Shishi acknowledged the imperial decree.