[Machine] The Prophet Muhammad ﷺ prohibited piercing the earlobe and the horn, as was mentioned in these two narrations. The first narration is more accurate, while the second narration is weaker. It has been reported from Ali (may Allah be pleased with him) that he disagreed with this prohibition regarding the horn.
نَهَى رَسُولُ اللهِ ﷺ عَنْ عَضْبَاءِ الْأُذُنِ وَالْقَرْنِ كَذَا فِي هَاتَيْنِ الرِّوَايَتَيْنِ وَالْأُولَى أَمْثَلُهُمَا وَالْأُخْرَى أَضْعَفُهُمَا وَقَدْ رُوِيَ عَنْ عَلِيٍّ ؓ مَوْقُوفًا خِلَافُ ذَلِكَ فِي الْقَرْنِ