Both annotated and unannotated versions of California codes show "Credits" (Westlaw) or "History" (Lexis+) directly after the text of the statute, or "enacted by" and/or "amended by" information at the top of a group of code sections and/or individually after the code section text.
For recent code sections, the bill number will often be noted in parentheses after the citation to Statutes and Amendments to the Codes—e.g., "Stats. 1992 c. 162 (AB 2650)" indicates Assembly Bill 2650 from the 1991-92 session.
If the bill number for the legislation you are researching does not appear in the credits/history, either:
If the statutory language you are researching derived from or was amended via a voter-initiated ballot measure or "Proposition" you may see in the Credits/History line something like—
If a Legislature-initiated ballot measure (also a numbered Proposition), or an Assembly- or Senate-initiated constitutional amendment, was involved you would see something like—