It is narrated from Sayyiduna Abdullah bin Abbas (may Allah be pleased with them both) that he said to Ikrimah and to his son Ali: "Both of you go to Sayyiduna Abu Sa'id al-Khudri (may Allah be pleased with him) and hear hadith from him." Ikrimah relates: So we went to him, and he was busy repairing a garden of his. When he saw us, he took up his cloak and sat with his knees drawn up (wrapped to his body), then he began narrating hadith to us, until, when he came to the mention of the building of the Prophet's Mosque, he said: "We used to carry (during the construction) one brick at a time, while Sayyiduna Ammar bin Yasir (may Allah be pleased with him), despite the weakness of an illness he had, was carrying two bricks at a time." Sayyiduna Abu Sa'id (may Allah be pleased with him) says: My companions also told me that the Messenger of Allah (peace and blessings be upon him) kept shaking the dust off his head and saying: "Alas, O son of Sumayyah! The rebellious group will kill you; you will be calling them to Paradise and they will be calling you to the Fire." On hearing this Sayyiduna Ammar (may Allah be pleased with him) began to say: 'A'udhu billahi minal-fitan' (I seek refuge in Allah from trials).
Imam Abu Dawud al-Tayalisi, Musaddad (the wording is his) and Imam Ahmad bin Hanbal recorded it, and this narration is also in Sahih al-Bukhari with other wording.