Some 9,000 people protested in Baghdad's Shiite slum of Sadr City after Friday prayers, burning a US flag and holding banners reading "No, no to the agreement." About 2,500 people held a similar rally in the southern city of Basra. "I express my condolences to the Iraqi people on this grave occasion, in which they are harmed by the ... pact of shame and degradation," Sadr, whose militia has fought US troops many times, said in a statement read to followers on his behalf. Sadr instructed his followers to wear black to mourn the passage of the deal, under which US troops will withdraw from Iraqi towns and cities by mid-2009, and leave the country by the end of 2011. Earlier on Friday, a suicide bomber wearing an explosives-packed vest killed 12 people and wounded 17 others inside a Shiite mosque visited mainly by Sadr supporters 60 kilometers (40 miles) south of Baghdad, police said. The US military said the bomber killed eight people and wounded 15 others as they queued outside the mosque to enter for Friday prayers. UN officials say such attacks are aimed at provoking renewed sectarian fighting between minority Sunni Arabs, once affiliated with al-Qaeda, and the majority Shiites who are now in charge of Iraq.