Pei (209 BC) — the same event in Book of Han and Records of the Grand Historian

Book of Han: The elders of Pei killed the magistrate, opened the gates to welcome Liu Bang, and set him up as Duke of Pei; he raised the red banner…

What each source says

Book of Han (Hanshu), Imperial Annals · 209 BC · 沛

The elders of Pei killed the magistrate, opened the gates to welcome Liu Bang, and set him up as Duke of Pei; he raised the red banner and gathered three thousand men.

高祖乃立為沛公。祠黃帝,祭蚩尤於沛廷,而釁鼓旗
Location: 漢書卷001 秦二世元年九月

Records of the Grand Historian (Shiji), Annals · 209 BC · 沛

When the magistrate of Pei changed his mind and closed the gates, Liu Ji shot a letter wrapped in silk over the wall; the elders killed the magistrate, welcomed Liu Ji and made him Duke of Pei.

眾莫敢為,乃立季為沛公。
Location: 史記卷008 高祖本紀

Place: 沛

Show on the map — open Book of Han (Hanshu), Imperial Annals