after stating the case, delivered the opinion of the court.
It is unnecessary to decide whether the Circuit Court erre in overruling the plea of former adjudication, or in rendering the decree appealed from; for we are of opinion that the motion.to dismiss the suit, as one not really involving a con *325 troversy within its jurisdiction, should have been sustained'. It is provided'by the fifth section of the act of March 3, 1875, (18 Stat. 472,) determining the jurisdiction of the Circuit Courts of the United States, that if in any suit commenced in one of. such courts “it shall appear to the satisfaction of said Circuit Court, at any time after such suit has been brought or removed thereto, that such suit does not really and substantially involve a dispute or controversy properly within the jurisdiction of said Circuit Court, or that the parties to said suit have been improperly or collusively made or joined, either as plaintiffs or defendants, for the purpose of creating a case cognizable or removable under this act, the said Circuit Court shall proceed no further therein, but shall dismiss the suit or remand it to the court from which it was removed, as justice may require* and shall make-such order as to costs as shall be just.”
The case presents no question of a Federal nature, and the jurisdiction of the .Circuit Court v?as invoked solely upon thé ground that the plaintiff was a citizen of Tennessee, and the defendants citizens of Alabama. But if the plaintiff, who was a citizen of. Alabama when the suit in the state court was determined, had not become, in fact, a citizen of Tennessee when the present suit was instituted, then, clearly, the controversy between him and the defendants was not one of which the'.Circuit Court could properly take cognizance; in which case, it became the duty of that court to dismiss it. It is true that, by the words of the statute, this duty arose only when it appeared to the satisfaction of the court that the suit was not one within its jurisdiction. But if the record discloses a controversy of which the court cannot properly take cognizance, its duty is to proceed no further and to dismiss the suit; and its failure or refusal to do what, under the law applicable to the facts proved, it ought to do, is an error which this court, upon its own motion, will correct, when the case is brought here for review. The rule is inflexible and without exception, as was said, upon full' consideration, in
Mansfield, Coldwater &c. Railway v. Swan,
It is contended that the defendant precluded himself from raising the question of jurisdiction, by inviting the action of the court upon his plea of former adjudication, and by waiting until the court had ruled that plea to be insufficient in law. In support of this position
Hartog
v.
Memory,
Nor does the case of Hartog v. Memory sustain the position taken by the defendant; for it was there said that “ if, from any source, the court is led to suspect that its jurisdiction has been imposed, upon by the collusion of the parties or in any other way, it may at once, of its own motion, cause the necessary inquiry to be made, either by having the proper issue joined and tried, or.by some other appropriate form of proceeding, and act as justice may require for its own protection, against fraud or imposition.” In that case, the citizenship of the parties was properly set out in the pleádings, and the case ■was submitted to the jury without any question being raised as to want of jurisdiction, and without the attention of the court being drawn to certain statements incidentall}r made in the deposition of the defendant against whom the verdict was rendered. After verdict, the latter moved for a new trial, raising upon that motion, for the first time, the question of jurisdiction. The court summarily dismissed the action, upon the ground, solely,’of want of jurisdiction, without affording the plaintiff any opportunity whatever to rebut or control the evidence upon the question of jurisdiction. The failure, under the peculiar circumstances disclosed in that. case, tp give such opportunity,, was, itself, sufficient to justify a reversal of the order dismissing the action, and what wás said that was irrelevant to the determination of that question was unnecessary to the decision, and cannot be regarded as authoritative. The court certainly did. not intend in that case to modify or relax the.rule announced in previous well-considered cases. In the case before us the question was formally raised, during the progress of the cause, by written motion, of which the plaintiff *328 had due notice, and to which he appeared and objected. So that there can be no question as to any want, of opportunity for him to be heard, and to produce evidence in opposition to the motion to dismiss.
We are thus brought to the question whether the plaintiff was entitled to sue in the Circuit Court. Was he, at the commencement of this suit, a citizen of Tennessee ? It is true, as contended by the defendant, that a citizen of the United States can instantly transfer his citizenship from one State'to another,
Cooper
v.
Galbraith,
Upon the ■evidence in this record, we cannot resist the conviction that the plaintiff had no purpose to acquire a domicil or settled home in Tennessee, and that his sole object in. removing to that State was to place himself in a situation to invoke the jurisdiction of the Circuit Court of the United States. He went to Tennessee without any present intention
*329
to remain there permanently or for an indefinite time, but with a present intention to return to Alabama as soon as he could do so without defeating the jurisdiction of the Federal court to determine his new suit. He was, therefore, a mere sojourner in the former State when this suit was brought. He returned to Alabama almost immediately after giving his deposition. The case comes within the principle announced in
Butler
v. Farnsworth,
The decree is - reversed, with costs to the appellant in this court, and the cause remanded, with a direction to dismiss' the suit without costs in the court below.
