President Trump issued the threat after Iranian President Hassan Rouhani said earlier in the day that pursuing hostilities against his country could lead to "the mother of all wars."