instead he had cursed the king of france and the pope , and within a year both philip and clement had died , giving credence to the superstition of the time that the templars had been in league with the devil .