It is narrated from Sayyiduna Ibn Abbas (may Allah be pleased with them both) that "the Prophet (peace and blessings be upon him) prayed on a carpet."
Imam al-Bayhaqi also recorded this narration of Imam Abu Ya'la al-Mawsili in his Sunan through Imam al-Hakim, by way of Abu Asim al-Nabil and Abu Nu'aym al-Fadl bin Dukayn, from Zam'ah bin Salih. It also has a supporting narration (shahid) from the hadith of Sayyiduna Anas (may Allah be pleased with him), which Imam al-Tirmidhi recorded in his Jami' and declared "hasan sahih". Imam al-Tirmidhi also said that there is a narration on this topic from Sayyiduna Ibn Abbas (may Allah be pleased with them both), and that the people of knowledge among the Companions (may Allah be pleased with them) and those after them act upon this: they saw no harm in praying on a carpet or a thick rug, and this is the view of Imam Ahmad and Imam Ishaq.
Hadith Referenceإتحاف الخيرة المهرة بزوائد المسانيد العشرة / كتاب القبلة وفيه ستر العورة وما يصلى فيه / 1191