The Messenger of Allah ﷺ ordered us to build the mosque, so we began carrying the bricks one by one, while Ammar carried them two at a time. His head became covered in dust.My companions told me, though I did not hear it from the Messenger of Allah ﷺ myself, that he began brushing the dust from Ammar's head and saying, "Woe to you, son of Sumayy, the rebellious party will kill you."
حدثنا ابن أبي عدي عن داود عن أبي نضرة
أمرنا رسول الله ﷺ ببناء المسجد فجعلنا ننقل لبنة لبنة وكان عمار ينقل لبنتين لبنتين فتترب رأسه قال فحدثني أصحابي ولم أسمعه من رسول الله ﷺ أنه جعل ينفض رأسه ويقول ويحك يا ابن سمية تقتلك الفئة الباغية
Its chain of transmission is sahih. It has already been mentioned in 2/6964, and it is found in Bukhari 4/25 in the Book of Jihad, chapter on wiping dust off people in the cause of Allah, and in Muslim 4/2235 number 2915 in the Book of Tribulations.