They performed the service of their God and the service of purification, along with the singers and gatekeepers, as David and his son Solomon had prescribed.