Language:
كتاب الصلاة
8  
Prayers (Salat)
(63)
Chapter: To co-operate in building a mosque
(63)
باب التَّعَاوُنِ فِي بِنَاءِ الْمَسْجِدِ
Sahih al-Bukhari 447

Narrated `Ikrima:

Ibn `Abbas said to me and to his son `Ali, "Go to Abu Sa`id and listen to what he narrates." So we went and found him in a garden looking after it. He picked up his Rida', wore it and sat down and started narrating till the topic of the construction of the mosque reached. He said, "We were carrying one adobe at a time while `Ammar was carrying two. The Prophet (ﷺ) saw him and started removing the dust from his body and said, "May Allah be Merciful to `Ammar. He will be inviting them (i.e. his murderers, the rebellious group) to Paradise and they will invite him to Hell-fire." `Ammar said, "I seek refuge with Allah from affliction."

حَدَّثَنَا مُسَدَّدٌ، قَالَ حَدَّثَنَا عَبْدُ الْعَزِيزِ بْنُ مُخْتَارٍ، قَالَ حَدَّثَنَا خَالِدٌ الْحَذَّاءُ، عَنْ عِكْرِمَةَ، قَالَ لِي ابْنُ عَبَّاسٍ وَلاِبْنِهِ عَلِيٍّ انْطَلِقَا إِلَى أَبِي سَعِيدٍ فَاسْمَعَا مِنْ حَدِيثِهِ‏.‏ فَانْطَلَقْنَا فَإِذَا هُوَ فِي حَائِطٍ يُصْلِحُهُ، فَأَخَذَ رِدَاءَهُ فَاحْتَبَى، ثُمَّ أَنْشَأَ يُحَدِّثُنَا حَتَّى أَتَى ذِكْرُ بِنَاءِ الْمَسْجِدِ فَقَالَ كُنَّا نَحْمِلُ لَبِنَةً لَبِنَةً، وَعَمَّارٌ لَبِنَتَيْنِ لَبِنَتَيْنِ، فَرَآهُ النَّبِيُّ صلى الله عليه وسلم فَيَنْفُضُ التُّرَابَ عَنْهُ وَيَقُولُ ‏ "‏ وَيْحَ عَمَّارٍ تَقْتُلُهُ الْفِئَةُ الْبَاغِيَةُ، يَدْعُوهُمْ إِلَى الْجَنَّةِ، وَيَدْعُونَهُ إِلَى النَّارِ ‏"‏‏.‏ قَالَ يَقُولُ عَمَّارٌ أَعُوذُ بِاللَّهِ مِنَ الْفِتَنِ‏.‏
Reference : Sahih al-Bukhari 447
In-book reference : Book 8, Hadith 96
USC-MSA web (English) reference : Vol. 1, Book 8, Hadith 438
  (deprecated numbering scheme)