(CNN) A Muslim inmate who argued his religious rights were violated because Alabama would not allow his imam by his side at his execution was put to death Thursday night.

Domineque Ray, 42, was sentenced to death in 1999 for his part in the 1995 rape and murder of a teenage girl, Tiffany Harville, in Selma, Alabama. His co-defendant in the case, Marcus Owden, is serving life without parole.

"Due to the nature of his crime, the decision of a jury to condemn him to death and because our legal system has worked as designed, Mr. Ray's sentence was carried out," Alabama Gov. Kay Ivey said in a statement.

"Courts at every level have upheld Mr. Ray's conviction for his senseless act. Accordingly, the laws of this state have been carried out. It is my prayer that, with tonight's events, Miss Harville's family can finally have closure."

The Supreme Court voted Thursday to lift a stay for the death row inmate. He had argued his religious rights were violated because he couldn't have his imam by his side at his execution.

Read More