Psalm 3 was written by King David about fleeing from his son Absalom, an account that is recorded in chapters 15 and 16 of the Book of 2nd Samuel.