Where the sirah comes from
Ibn Ishaq through Ibn Hisham, al-Waqidi, Ibn Sad, al-Tabari and the two collections: what each kind of source is, and why the dates in them differ.
The timeline these sources give
The life of the Prophet is not known from one book. It is known from several kinds of book, written at different distances from the events, held to different standards, and disagreeing with one another about dates more often than a single narrative lets you see. A reader who knows which kind of book a statement came from can weigh it; a reader who does not is at the mercy of whoever is telling the story.
The sirah proper
Ibn Ishaq (died about 150 of the hijra) wrote the first full life we have any real access to. We do not have his book: we have Ibn Hisham's recension of it, made perhaps sixty years later, with material left out that Ibn Hisham tells us he is leaving out. Parts of what Ibn Hisham dropped survive in quotations by others, which is how we know some of what was in the original.
Al-Waqidi (died 207) wrote on the campaigns in particular, with far more dates and numbers than Ibn Ishaq gives. He is the reason many modern books can say which month a given expedition set out in. The hadith critics were hard on him, and the later historians used him anyway, which tells you something about how the two disciplines differed.
Ibn Sad (died 230), al-Waqidi's student, arranged the material by person rather than by year: a vast dictionary of the Companions and the generations after them, which is where much of what is known about individuals comes from.
Al-Tabari (died 310) put the sirah inside a history of the world and, crucially, kept the chains of transmission and the variant versions side by side instead of smoothing them into one account. When two dates are given for an event, he is often where you can see both.
The hadith collections
The two collections of al-Bukhari and Muslim, and the four books of sunan beside them, are a different kind of work with a different purpose. They were assembled to preserve what the Prophet said and did as law and practice, each report with its chain of transmitters, and each chain examined. They are not chronologies: they rarely date anything, and they are not arranged by year.
So the two kinds of source answer different questions. What he said at Arafat on the farewell pilgrimage is a hadith question. In which year the Trench was dug is a sirah question. A book that treats both kinds of statement as equally firm is doing the reader no favour.
Why the dates differ
Because they were reckoned, not recorded. Nobody in Makkah in the year we call 610 was writing a date on anything: the Arabs of the peninsula dated by events — the year of the elephant, the year of the delegation — and the Common Era years in every modern book are back-calculations from those events, made by scholars who disagreed about how the events lined up. The hijri calendar itself was begun under Umar, years after the hijra it counts from.
That is the whole reason this site marks a disputed date rather than printing one. The timeline names the disagreement at the birth year, the Night Journey, the Trench and the quiet years. And how a report is weighed sets out the grading the hadith critics applied, which is the tool they used on exactly this problem — and which, applied to the sirah literature, is why a great deal of what is popularly told about the life is told with more confidence than its sources support.
This page describes what the schools of law hold, with the source of each. It is not a fatwa. For your own case, ask a qualified scholar or your local imam.