The Messenger of Allah ﷺ commanded to kill five harmful things in the state of lhram or otherwise. The rest of the hadith is the same.
أَمَرَ رَسُولُ اللَّهِ ﷺ بِقَتْلِ خَمْسِ فَوَاسِقَ فِي الْحِلِّ وَالْحَرَمِ ثُمَّ ذَكَرَ بِمِثْلِ حَدِيثِ يَزِيدَ بْنِ زُرَيْعٍ