Passing judgement in the mosque and ordering the punishment outside the Mosque Sahih al-Bukhari 7168
Arabic hadith text
قَالَ ابْنُ شِهَابٍ فَأَخْبَرَنِي مَنْ، سَمِعَ جَابِرَ بْنَ عَبْدِ اللَّهِ، قَالَ كُنْتُ فِيمَنْ رَجَمَهُ بِالْمُصَلَّى. رَوَاهُ يُونُسُ وَمَعْمَرٌ وَابْنُ جُرَيْجٍ عَنِ الزُّهْرِيِّ عَنْ أَبِي سَلَمَةَ عَنْ جَابِرٍ عَنِ النَّبِيِّ صلى الله عليه وسلم فِي الرَّجْمِ
Translation
(continued from above)Narrated Jabir bin Abdullah
I was one of those who stoned him at the Musalla in Al-Madina (See Hadith 5272).