CHICAGO — J. Dennis Hastert, the small-town wrestling coach who rose to political power as the longest-serving Republican speaker of the House, intends to plead guilty in a case in which he is accused of skirting banking laws and lying to the federal investigators, a prosecutor said Thursday.

Mr. Hastert, 73, was charged in May with structuring cash withdrawals, totaling $1.7 million, in a manner intended to avoid detection by banking officials, and then lying about the withdrawals to the federal authorities. The seven-page indictment laid out a pattern of clandestine meetings and bank withdrawals.

The indictment said the withdrawals were used to “compensate for and conceal” earlier “misconduct” against a person identified only as “Individual A.” That money was used to cover up allegations of sexual misconduct with a male student during Mr. Hastert’s time as a high school teacher and coach in Yorkville, Ill., two people briefed on the investigation said. Mr. Hastert has not been charged with any sexual crimes, and the identity of the person he is accused of paying remains unknown.

A federal prosecutor said in Federal District Court here that the government expected a written plea agreement to be given to the judge on Monday. The judge scheduled a hearing for Oct. 28, when Mr. Hastert is expected to change his not guilty plea to guilty.