35 The primary references to Mahmud frame the Shahnama. In the beginning, the verses appear before the main story begins and after the sections in praise of the prophet and the stories of Abu Mansur and Daqiqi. Immediately after the Shahnama ends with the defeat of the Iranians, Firdausi praises Mahmud, Shahnama, 8: 487, l. 888. The following noted verses are a sample of the references to the Sultan in the Shahnama, 5: 220, ll. 19–20, which appear at the end of Gushtasp's story; 5: 439, ll. 7–8, which is a dedication to the sultan appearing before Rustam and Shaghad's story; 5: 515, ll. 1–6, which is a eulogy to the Sultan at the beginning of Darab's story; 6: 135–37, ll. 23–63, which is a eulogy to the Sultan at the beginning of the Ashkaniyan's story; 7: 409, l. 3862 and 7: 409 (footnote 17), which appear at the beginning and the end of Nushiravan's letter to Hurmuzd respectively. Each of these references frame the individual story (either by beginning with a praise/reference to Mahmud or ending with one).