Many times the curse is the opposite of hit, it is clearly mentioned in the hadith.
It is haraam for a Muslim to curse another Muslim.
Even a certain non-Muslim cannot be cursed until his death in a state of disbelief is confirmed.
The Prophet (peace and blessings of Allaah be upon him) said in the hadeeth, ‘A true Muslim is a person from whose tongue and hand other Muslims are safe. (Tirmidhi, Hadith No. 2627; Abu Dawood, Hadith No. 2461)
It is not good for a Muslim to do things that can hurt other Muslims. If you ever hurt someone unknowingly, it is an expression of good character to apologize to him as soon as you understand.

In the same way, forgiving someone even if he is a victim of oppression is a sign of great character.
It is narrated in the hadith, 'The Prophet (peace and blessings of Allaah be upon him) said,' Whoever breaks off relations with you, establish a relationship with him, who deprives you, you please him, whoever oppresses you, treat him well. ' .
(Musnad Ahmad, Hadith No: 18334)
It is not proper for a believer to curse someone in the same way. In the hadith, the Prophet (peace and blessings of Allaah be upon him) said, ‘A believer is never a curser. (Tirmidhi, Hadith No. 207)
The Prophet (peace and blessings of Allaah be upon him) further said, ‘You shall not curse one another with the curse of Allaah, His wrath and Hell. (Tirmidhi, Hadith No. 198)
The one who curses will not get dignity in the Hereafter. The Prophet (peace and blessings of Allaah be upon him) said: Those who curse on the Day of Resurrection will not be able to intercede or testify. (Muslim, Hadith No. 2598)
From all these hadiths it is easily inferred that cursing someone unjustly is a heinous act. The beloved Prophet (peace be upon him) did not like curses and cursers.
The Prophet (peace and blessings of Allaah be upon him) said: When a servant curses a person, the curse goes to heaven, the gates of heaven are closed to him, and then it descends to the ground. Then the gates of the land are closed to him, then he turns to the right and to the left, when he finds no way, then the one who has been cursed, if he deserves it, falls to him. Otherwise it runs towards the curse. (Abu Dawood, Hadith No: 4907)
In another hadith from Ibn 'Abbas, a man cursed the wind of the Prophet (peace be upon him), then the Prophet said, "Do not curse the wind, because it is from Allah." If someone curses or curses an object, and he is not the object of that curse, then that curse returns to the curser. (Tirmidhi, Hadith No. 198; Abu Dawood, 2/26)
Understandably, if the one who curses or curses does not deserve the curse, then this curse does not go to him. Rather, it is returned to the accursed. I want to be careful in cursing for this. May Allah protect us from all evils and dangers.