The Prophet (ﷺ) said, "Whoever killed a person having a treaty with the Muslims, shall not smell the smell of Paradise though its smell is perceived from a distance of forty years."
Sahih al-Bukhari Book 58, Hadith 8