It was narrated from Anas bin Malik that the Prophet (ﷺ) said:
“There are no two Muslims who confront one another with their swords, but both the killer and the slain will be in Hell.”