The funeral procession of the influential religious and political figure is to make its way south on Saturday to the holy city of Karbala, and then to Najaf, where Hakim will be buried.
Its relative success in Saturday's regional election reflects deep popular dissatisfaction with official corruption.
The attacks underscore the security challenges after the US withdrawal from cities, particularly in the volatile areas in the north.
In Interview, Iraqi foreign minister tells US not to disengage with Iraq politically – like it did in Afghanistan.
After Harith al-Obeidi was shot at a Baghdad mosque, President Jalal Talabani called for national unity 'in the face of powers that seek to provoke strife and destabilize the country.'
On a surprise visit that lasted less than five hours, the US president also met with Iraq's prime minister.
The president fielded questions on Iraq before heading to Baghdad for an unannounced visit.
Camp Ashraf, which came under Iraqi control Jan. 1, is home to militants who Iran and Iraq say should be expelled. The MKO is on a US list of terrorist groups.
The Iraqi premier is increasingly at risk as cracks in his Shiite-Kurdish coalition grow in the waning days of the Bush administration, his other main ally.
The presidential candidate has said he will draw down troops in Iraq if elected.