Sayyiduna Nu'man bin Bashir (may Allah be pleased with him) narrates that the Prophet (peace and blessings be upon him) said: "Whoever inflicts as many lashes as a hadd punishment where there is no hadd is among the transgressors."
The preserved version of this hadith is mursal.
Hadith Referenceالسنن الكبرى للبيهقي / كتاب الأشربة والحد فيها / 17584