WASHINGTON—Michael Cohen, a former lawyer for President Trump, directed his attorney last spring to inquire about the possibility of a presidential pardon, weeks after federal agents raided his properties, Mr. Cohen’s lawyer said Wednesday, apparently contradicting his testimony before a House committee last week.

The Wall Street Journal previously reported that Stephen Ryan, Mr. Cohen’s attorney at the time, discussed the possibility of a pardon with lawyers for Mr. Trump in the weeks after the Federal Bureau of Investigation...