In the story of the children of Húrin, Beleg is granted a gift by King Thingol, and he asks for the sword Anglachel. Melian warns him of the evil of the sword, and says that it will not love the hand that it serves, and won't abide with him long. He chosoes it even so.
But as Thingol turned the hilt of Anglachel towards Beleg, Melian looked at the blade; and she said: 'There is malice in this sword. The heart of the smith still dwells in it, and that heart was dark. It will not love the hand that it serves; neither will it abide with you long.'
'Nonetheless I will wield it while I may,' said Beleg; and thanking the king he took the sword and departed. Far across Beleriand he sought in vain for tidings of Túrin, through many perils; and that winter passed away, and the spring after.
Then, later, it seems her prophecy was fulfilled:
Beleg drew his sword Anglachel, and with it he cut the fetters that bound Túrin; but fate was that day more strong, for the blade of the Dark Elf slipped in his hand, and pricked Túrin's foot.
The consequences of this mistake were dire, and led to Beleg's death. Seemingly, Melian was correct; the sword did not love him, and intentionally got him killed.
...But then something weird happens. The sword seems to mourn for Beleg.
And Gwindor gave the sword Anglachel into his hands, and Túrin knew that it was heavy and strong and had great power; but its blade was black and dull and its edges blunt. Then Gwindor said: 'This is a strange blade, and unlike any that I have seen in Middle-earth. It mourns for Beleg even as you do.
Of course, this is just Gwindor's interpretation, and maybe nothing else. Except that at the end of the book the sword actually speaks, and blames Túrin for killing Beleg.
And from the blade rang a cold voice in answer: 'Yes, I will drink your blood, that I may forget the blood of Beleg my master, and the blood of Brandir slain unjustly. I will slay you swiftly.'
So it is safe to say that the sword did care for Beleg, and was sorry to have killed him. So was Melian wrong? Was it by coincidence that her prophecy seemed to have been fulfilled when Beleg accidentally pricked Túrin's foot?