As a part of the prohibition against hating others, that same verse begins: “You shall not take revenge or bear a grudge...”
What is meant by “taking revenge”? Person A asks, “Lend me your hatchet [for example]. Person B responds, “I refuse to lend it to you.”
On the following day, Person B [who refused] needs to borrow a sickle. He asks Person A, “Lend me your sickle.” Person A responds, “Just as you did not lend to me, I will not lend to you.” This is considered to be taking revenge, and is an evil trait. Instead, one should help others with a full heart, without making reprisals against them for wrongs they did to him in past.
What is meant by “bearing a grudge”? Person A asked Person B, “Lend me your hatchet [for example],” and Person B was not willing to do so. On the following day, Person B asks Person A, “Lend me your sickle.” Person A tells him, “Here, it is. I am lending it to you. I am not like you, who would not lend to me, nor am I paying you back for what you did.” A person who acts in this manner is bearing a grudge. Instead, one should wipe such a matter from his heart and not bring it to mind. Therefore, when an unhelpful person comes asking for help, one should give it to him with a full heart, without thinking of being wronged in the past, because holding a grudge can lead to the possibility of seeking revenge. (Seven Gates of Righteous Knowledge by Rabbi Moshe Weiner and Dr. Michael Schulman, Ask Noah International, 2017, p 113-114)