[Machine] The Prophet ﷺ used to pray against certain men of the polytheists and call them by their names, until Allah revealed, "It is not for you to decide a matter, whether He turns in mercy to (pardon) them or punish them; for they are indeed wrong-doers" [Quran 3:128]. So he stopped doing that.
كَانَ رَسُولُ اللهِ ﷺ يَدْعُو عَلَى رِجَالٍ مِنَ الْمُشْرِكِينَ يُسَمِّيهِمْ بِأَسْمَائِهِمْ حَتَّى أَنْزَلَ اللهُ {لَيْسَ لَكَ مِنَ الْأَمْرِ شَيْءٌ أَوْ يَتُوبَ عَلَيْهِمْ أَوْ يُعَذِّبَهُمْ فَإِنَّهُمْ ظَالِمُونَ} [آل عمران 128] فَتَرَكَ ذَلِكَ