Humayun Gauhar, a friend of Mr. Musharraf who helped him write his 2006 autobiography, said the ex-president had returned to Pakistan because he wanted toclear his name "of these stigmas" and had been confident that he would receive due process from the courts.