U.S. President Donald Trump said the cancellation of attacks on Iran was contingent that a peace deal is quickly reached.