Zadok the son of Ahitub and Abimelek the son of Abiathar served as priests, while Shavsha was scribe.