The movie you are referring to is likely "Se7en" (often stylized as "Seven"). Released in 1995, "Se7en" is a psychological thriller directed by David Fincher and starring Brad Pitt, Morgan Freeman, and Kevin Spacey. The film is known for its dark and gritty atmosphere, as well as its exploration of the seven deadly sins.

The plot revolves around two detectives, played by Brad Pitt and Morgan Freeman, who are investigating a series of gruesome murders that are each inspired by one of the seven deadly sins: gluttony, greed, sloth, wrath, pride, lust, and envy. As they get closer to catching the killer, portrayed by Kevin Spacey, the detectives become immersed in a twisted and disturbing world.

"Se7en" is highly regarded for its atmospheric tension, clever storytelling, and memorable performances. It delves into the darkest corners of the human psyche and tackles themes of morality, obsession, and the consequences of unchecked sin. The film's ending is particularly notable for its shocking and impactful twist.

"Se7en" has left a lasting impact on the thriller genre and is often cited as one of the best films in its category. It continues to be praised for its suspenseful narrative and its ability to provoke thought and discussion about the nature of evil and human nature