A beaming D.C. Mayor Marion Barry told about 1,500 cheering churchgoers yesterday that he "will rise again" after his trial on cocaine and perjury charges because he "worships a God who believes in forgiveness."

Addressing the congregation at Scripture Cathedral in Northwest Washington during his only public appearance of the day, Barry said his faith in "a God who forgives us for our sins" had enabled him to "hold my head high" in and out of the courtroom in recent weeks and remain free of chemical substances for 175 days.

"God came to this life to save sinners, and I have sinned. Everybody has sinned," Barry said. And when people ask what will happen to him after his trial on drug and perjury charges, Barry said, he has begun to tell them, "It's going to be all right."

The mayor and his wife, Effi, were greated with hugs, shouts of "hallelujah" and five standing ovations by the congregation at Scripture. The Barrys had agreed to appear at the church on O Street NW for the first time in three years after the pastor, Bishop Clarence L. Long, attended Barry's trial last Thursday, Long said.

Barry's five-minute turn at the lectern came after Long told the worshipers that Barry "has been through enough" and "already won" his legal and personal battles.

"The Lord told me to tell you and to tell our city you don't have to worry because you already won," Long said, addressing the mayor. "Don't worry about the Justice Department, don't worry about Judge Jackson and don't worry about the jury . . . God knows what he is doing."

After the service, Long said that he thinks Barry is already victorious because of the mayor's strong religious convictions, but that he believes Barry will be acquitted as well.

Several members of Scripture's congregation said they were pleased by Barry's remarks.

"He deserves to be given a fair shot," said Felicia Russell, 23, of Northeast Washington. "Everyone makes mistakes. Just because he is in the public eye doesn't mean he should be {a} saint . . . . He was man enough to get up there and admit he had a made a mistake."

Shannon Kellerman, 19, of Arlington, said Barry was given such a positive reception "because it looks like he is going to make a sincere change in his life . . . . So far as the Christian community is concerned, it's not our job to judge when someone is down. It's our job to lift him up."