DETROIT (AP) _ Disgraced ex-Detroit Mayor Kwame Kilpatrick writes in his upcoming memoir that he “hated on” then-U.S. Sen. Barack Obama as he watched the 2008 election coverage from his jail cell.

Despite previously having developed a relationship based on “mutual respect,” Kilpatrick writes he turned his “enmity toward” Obama on Election Day.

In “Surrendered! The Rise, Fall and Revelation of Kwame Kilpatrick,” the imprisoned ex-politician describes watching election coverage on a TV in his cell that night. At first, Kilpatrick felt pride at seeing a fellow African-American win the historic election, but he writes that feeling later turned to enmity.

Kilpatrick writes he “hated on” Obama “a little, asking God, `Why? Why him and not me?”’

The Associated Press obtained an advance copy of the book. It comes out Aug. 1.