Biblical scholars perceive this simple right of asylum at sanctuaries as being presented by the Covenant Code, which textual scholars attribute to the 8th century BC. Biblical scholars also believe that this right was the context underlying the account in the Books of Kings of Joab and Adonijah each fleeing from Solomon to an altar, with their opponents being unwilling to attack them while they remained there; textual scholars regard these passages as being part of the Court History of David, which they date to the 9th century BC, or earlier.