While Morgan Freeman didn't play a preacher in the film, his character, Ellis "Red" Redding, says the line: "Let no man mourn again for love, God will bring you peace."
It's important to note that the line is not said by Red in the original Stephen King novella the film is based on. It was written specifically for the film adaptation.