Firdausi (Ferdowsi) was a Persian poet renowned for his epic 'Shahnameh' (The Book of Kings), which chronicles Persian history and mythology. Both statements are correct - he was a Persian poet and the Shahnameh is his masterpiece (note spelling, not 'Sharnama').