OPINION OF THE COURT
Thе appellant, William Van Scoten, now serving a prison sentence in the New Jersey State Prison at Trenton, New Jersey, imposed by a New Jersey state court, filed a petition for a writ of habeas corpus in the Eastern District of Pennsylvania, challenging the validity of a sentence imposed upon him by a Pennsylvania state court, the service of which is to commence upon completion of his New Jersey imprisоnment.
The District Court, in a Memorandum Order dated August 30, 1967, denied Van Seoten’s petition on the ground that
*768
under McNally v. Hill,
That, in рaraphrase, “a trial judge’s lot is not a happy one”,
1
is demonstrated in the instant case by the circumstance that subsequent to the District Court’s then correct application of
McNally,
it was in terms overruled in Peyton v. Rowe,
In light of Peyton we are constrained to rule that the District Court erred in denying Van Scoten’s pеtition on the ground that habeas corpus relief is unavailable to challenge a sentence yet to be served.
We are, however, of the opinion that the District Court was without territorial jurisdiction to entеrtain Van Scoten’s petition and should have dismissed it for that reason since at the time it was filed Van Scoten was incarcerated in a New Jersey jail which is outside the territorial jurisdiction of the Eastern District of Pеnnsylvania. As subsequently developed, it is settled law that a federal district court is without jurisdiction to issue a habeas corpus writ if the person detained is not within its territorial jurisdiction when his petition for the writ is filed. 2
The record disсloses that on March 17, 1960 Van Scoten was sentenced by a New Jersey court to serve a jail term in the New Jersey State Prison at Trenton, New Jersey. While serving that sentence he pleaded guilty, on October 14, 1960, in а Bucks County, Pennsylvania, court to two burglary and larceny indictments and was sentenced to serve one to two years in the Pennsylvania State Prison upon completion of his New Jersey imprisonment. Van Scoten was then returned to the New Jersey State Prison and the Commonwealth of Pennsylvania lodged a detainer against him.
Thereafter, Van Scoten, while still incarcerated in New Jersey, filed a petition for a writ of habеas corpus in the Court of Common Pleas of Bucks County, but it was denied on July 26, 1965 as being premature. A subsequent petition to the same court was denied, after a hearing,
3
on the merits, on September 6, 1966. This denial was affirmed
per curiam
by the Pennsylvania Superior Court, Commonwealth ex rel. Van Scoten v. Yeager,
Van Scoten then brought the instant petition in the District Court on August 4, 1967, alleging that he was being held in custody unlawfully since (1) he had not intelligently and understanding^ *769 consented to the pleas of guilty in the Bucks County court and (2) he had not been represented by counsel therein pri- or to entry of his guilty pleas. As earlier stated, this petition was denied without a hearing on August 30, 1967, on the ground that under McNally v. Hill, supra, the District Court could not inquire into the legality of a sentence that the prisoner had not yet begun to serve. Van Scoten then petitioned for reconsideration and for a certificate of probable cause, contending that the Pennsylvania detainer lodged against him with the New Jersey authоrities placed him in Pennsylvania custody. Rehearing was denied on September 14, 1967, on the ground that the detainer did not constitute custody by the Pennsylvania authorities.
At all times during these proceedings Van Scoten has bеen, and still is, incarcerated in New Jersey, and has not yet begun to serve his Pennsylvania sentences.
Jurisdiction of federal district courts with respect to habeas corpus petitions filed by state prisoners is fixed by 28 U.S.C.A. § 2241(а). It provides in relevant part as follows:
“Writs of habeas corpus may be granted by the Supreme Court, any justice thereof, the district courts and' any circuit judge within their respective jurisdictions. * * * (emphasis supplied).
In the leading case of Ahrens v. Clark,
In United States ex rel. Smith v. Warden of Philadelphia County Prison,
The Ahrens doctrine has been given effect in other Circuits.
In the recent case of Ashley v. State of Washington,
In affirming, the Ninth Circuit said (page 126):
“Ashley says that he is attacking the Washington detainer, and that therefore the District of Washington is the proper court for his case. But Congress has conferred jurisdiction upon the United States District Courts to issue writs of habeas corpus ‘within their respective jurisdictions’. (28 U.S.C. § 2241(a)). The Supreme Court has held that this means the district in which the petitioner is detained when the petition is filed. Ahrens v. Clark, 1948,335 U.S. 188 ,68 S.Ct. 1443 ,92 L.Ed. 1898 . Ashley is detained in Florida, not Washington.”
Again, in Booker v. State of Arkansas,
The Eighth Circuit affirmed denial of the habeas corpus writ on the ground that the District Court lacked territorial jurisdiction to issue it under Ahrens. In doing so it stated (p. 243):
“Booker is an inmate of the federal рenitentiary at Atlanta, Georgia. His incarceration there is coneededly lawful and it has been continuous since prior to the filing of his petition in the Eastern District of Arkansas. Atlanta is in the Fifth Circuit and the Northern District of Georgia. * * The district court, therefore, has no jurisdiction to issue the writ. 28 U.S.C. § 2241(a); Ahrens v. Clark,335 U.S. 188 ,68 S.Ct. 1443 ,92 L.Ed. 1898 (1948); Karp v. United States,296 F.2d 564 (8 Cir. 1961), cert. denied369 U.S. 867 ,82 S.Ct. 1034 ,8 L.Ed.2d 86 ; Hart v. Ohio Bureau of Probation and Parole [290 F.2d 550 , 551 (6 Cir. 1961)]. * * *”
In Allen v. United States,
In doing so the Court, citing Ahrens, said (p. 59):
“It would avail the petitioner nothing to consider his petition [in a post-conviction proceeding] as an application for writ of habeas corpus, as he was not in custody within the territorial limits of the court below at the time of the institution of this suit.”
The First Circuit, in Duncan v. State of Maine,
In affirming the dismissal of the habeas corpus petition by the District Court of Maine, the First Circuit held that under the Ahrens doctrine, the District Court did not have jurisdiction to entertain the petition by one originally held in custody in the District pursuant to a state court sentence but who, at the time of application for the habeas corpus writ, was being held outside the District Court’s territorial jurisdiction by federal authorities acting under contract with the state for care of state prisoners.
In Whiting v. Chew, Director, Parole Board, Richmond, Virginia,
In affirming the dismissal of the writ, the Court said (273 F.2d page 886):
“ * * * [I] t is manifest that the petition states no ground upon which a writ of habeas corpus could be issued in the District Court, inasmuch as the petitioner is not being detained within the territorial jurisdiction of the court to which the petition is addressed. Section 2241(a) of 28 U.S.C.A., giving District Courts power to grant writs of habeas corpus ‘within thеir respective jurisdictions’ has been interpreted by the Supreme Court as *771 requiring the conclusion that a Federal District Court has no jurisdiction to issue the writ if the person detained is not within the territorial jurisdiction of the court when the petition is filed, Ahrens v. Clark, 1948,335 U.S. 188 ,68 S.Ct. 1443 ,92 L.Ed. 1898 . Moreover, it is fundamental that habeas corpus will not lie if the person seeking the writ is not in physical custody of the official to whom the writ is directed, Weber v. Squier, 1941,315 U.S. 810 ,62 S.Ct. 800 ,86 L.Ed. 1209 ; Strand v. Schmittroth, 9 Cir., 1957,251 F.2d 590 , 602. The defendant, thе Parole Director of Virginia, has neither actual nor constructive custody of the petitioner.”
In consonance with what has been said, the Order of the District Court denying Van Scoten’s application for а writ of habeas corpus will be affirmed on the ground that the District Court was without territorial jurisdiction to entertain it.
Notes
. “When constabulary duty’s to be done—
“To be done,
“The policeman’s lot is not a happy one—
“Happy one.”
Sir William S. Gilbert — The Pirates of Penzance, Act II.
. A limited exception to this rule was made by statutory enactment in 1966 of Section 2241(d), 28 U.S.C.A. It provides that in a state whiсh contains more than one federal judicial district, an application for habeas corpus relief by a prisoner of that state may be filed either in the district in which he is in custody or in the district within which he was cоnvicted and sentenced.
. On September 29, 1965, the Pennsylvania Supreme Court in Commonwealth ex rel. Stevens v. Myers,
