It is narrated from Sayyiduna Anas bin Malik (may Allah be pleased with him) that the Prophet (peace and blessings be upon him) said: "When Allah Almighty created the earth, it began to sway. Then Allah Almighty created the mountains and placed them upon the earth, and it became still. At this the angels were amazed at the creation of the mountains, and they said: 'O Lord! Is there anything in Your creation harder than the mountains?' Allah Almighty said: 'Yes, iron.'"
And the narrator mentioned the rest of the hadith in the same way.
Imam al-Tirmidhi (may Allah have mercy on him) narrated it through Muhammad bin Bashshar from Yazid bin Harun, and he said: "This hadith is gharib; we know it as marfu' (attributed to the Prophet) only through this chain."