Justin Bieber spent Tuesday in a California prison, participating in a faith-based program.

Bieber and a pastor attended California State Prison in Lancaster, which holds more than 3,000 inmates, CBN News reports.

The inmates range from minimum to maximum security.

The singer arrived at the prison in his tour bus, caught on camera by TMZ. It is unclear whether Biber sang or shared the message of the Gospel during his time there.

The visit to the prison was approved by the institution's warden in support of their faith-based programs, a California Department of Corrections and Rehabilitation spokesperson tells Fox News.

According to the spokesperson, "CDCR ensured every COVID-related precaution was taken prior to and during the visit."

Bieber and his wife, Hailey, are currently members of Churchome. The ministry is run by Pastor Judah and Chelsea Smith. The singer claimed his church affiliation was with Churchome after his former mentor, Carl Lentz, was fired from Hillsong for moral failings.

In recent years, Bieber has been known to post faith content frequently to his social media platforms, sharing inspiration with his followers.

View this post on Instagram

A post shared by Justin Bieber (@justinbieber)

"My perspective of God has switched from fear to LOVE," Bieber wrote on Instagram four days ago. "U are never too far from God! Hes obsessed with you."

His album, Justice, was released on Mar. 19, 2021.