It is narrated from Sayyiduna Abdullah bin Mas'ud (may Allah be pleased with him): The Prophet (peace and blessings be upon him) said: "Settle matters of the hadd punishments among yourselves as long as the matter has not been brought before the rulers. Once it is brought before the rulers, then the ruler will judge between the people according to the Book of Allah."
Abu Ya'la recorded it. Its chain contains al-Abbas bin al-Fadl al-Ansari, who is da'if (weak).
Hadith Referenceمجمع الزوائد ومنبع الفوائد / كتاب الحدود والديات / 10560