The animal you are looking for is almost certainly Tiktaalik roseae, a roughly 375-million-year-old lobe-finned fish from the Late Devonian that grew to about 1.2–2.7 meters (4–9 feet) in length, had a flat crocodile-like head and robust fins capable of propping its body up, and possessed both gills and lungs. If your mental image is a large prehistoric fish gulping air at the water's surface, Tiktaalik is the standard example, though it was not the only ancient fish with lungs—and the "human-sized" part of your description fits only some members of its group.
The short answer, then: Tiktaalik is a fish the size of a small-to-average human that breathed with lungs as well as gills. But the details matter, because "breathed with lungs" means something different in a fish than it does in a mammal, and because the fossil record shows lungs are far older and more widespread among fishes than most people assume.
What Tiktaalik actually was
Tiktaalik roseae was described in 2006 from fossils found on Ellesmere Island in Arctic Canada, in rocks dating to the Late Devonian, about 375 million years ago. It belongs to a group called the elpistostegalians, lobe-finned fishes that sit very close to the origin of tetrapods—the four-limbed vertebrates that include amphibians, reptiles, birds, and mammals.
In plain terms, Tiktaalik was a fish. It had scales, fins, and gills. But it also had a number of features that anticipate land vertebrates: a flattened skull with eyes on top, a neck that could bend independently of the body, a ribcage built for supporting the trunk, and front fins with internal bones corresponding roughly to the upper arm, forearm, and wrist. Those fins could not walk on land the way a tetrapod limb does, but they could push the animal up off the bottom in shallow water.
Its size is often described as roughly 1.2 to 2.7 meters long, depending on the estimate and the specimen. That range makes it comparable to a human in length, which is presumably what prompted your search. It was a predator in shallow freshwater or estuarine channels, and its body plan is consistent with an animal that spent time in oxygen-poor, warm, shallow water where gulping air would have been useful.
Did Tiktaalik really have lungs?
Yes—but the evidence is anatomical and comparative rather than a preserved lung. Soft tissues like lungs almost never fossilize. What paleontologists can establish is that Tiktaalik's skeletal anatomy, and the anatomy of its closest relatives, is consistent with air-breathing, and that lobe-finned fishes as a group primitively possess lungs or lung-like air-breathing organs.
The key comparative fact is that lungs are not a tetrapod invention. Among living fishes, lungfish have true lungs and must surface to breathe air; bichirs have paired lung-like swim bladders that function in air breathing; and ray-finned fishes generally have a swim bladder that is developmentally and evolutionarily related to the lung. In other words, the ability to breathe air with an internal gas-filled organ is an old feature of bony fishes, not something that appeared only when animals crawled onto land.
Tiktaalik's place in the tree makes lungs highly probable. It is a lobe-finned fish, and lobe-finned fishes are the lineage in which lungs are ancestral. Its flattened skull, upward-facing eyes, and robust ribs are all consistent with an animal that habitually raised its head above the water surface to gulp air. Whether its lungs were fully developed, partially reduced, or supplemented mainly by gulping and buccal pumping is not something the fossils can settle definitively. The honest statement is that Tiktaalik is reconstructed as a facultative air-breather—an animal that used lungs or lung-like organs when oxygen was scarce, while still relying on gills for most gas exchange.
That distinction is important. "Breathed with lungs" does not mean Tiktaalik lived on land or breathed only air. It means it had the internal equipment to take in air and absorb oxygen through a vascularized organ, alongside gills that handled gas exchange in water. Many modern fish do the same thing.
The larger story: lungs came before limbs
The reason your search is interesting is that it inverts a common assumption. People tend to imagine that lungs evolved after animals left the water, as an adaptation to breathing air on land. The fossil and anatomical evidence points the other way: air-breathing organs were present in fishes long before limbs capable of walking.
Several lines of evidence support this. Lungfish, which are lobe-finned fishes and close relatives of tetrapods, have true lungs and are obligate air-breathers in many habitats. Bichirs, a more distant ray-finned lineage, have paired air-breathing organs. And the swim bladder of most modern bony fishes is homologous to the lung—meaning the two structures share a common evolutionary origin. The most parsimonious reading is that the common ancestor of bony fishes already had a lung-like organ, and that different lineages modified it in different ways: some retained it as a lung, some converted it into a buoyancy-control swim bladder, and some reduced it.
This is why paleontologists describe Tiktaalik as part of a broader Devonian story rather than a singular missing link. The Devonian period, sometimes called the "Age of Fishes," produced a range of lobe-finned fishes experimenting with shallow-water, air-breathing, fin-propelled lifestyles. Tiktaalik is one well-preserved example; others include Panderichthys, Elpistostege, and the early tetrapods themselves, such as Acanthostega and Ichthyostega.
Why "human-sized" is a useful but imperfect description
Tiktaalik's length estimate overlaps the human range, which is why the phrase "human-sized fish" is reasonable. But length is a crude measure. Tiktaalik was a low, flattened animal, not a tall biped, and its body mass and proportions differed substantially from a person's. The largest specimens approach the upper end of the quoted range; smaller individuals were considerably shorter.
If your search was prompted by a specific image or museum display, the size you saw may reflect a particular reconstruction. Fossil reconstructions vary, and popular accounts sometimes round "about 3 meters" or "up to 9 feet" for dramatic effect. A safer description is that Tiktaalik was a large fish by Devonian standards, comparable in length to a human, but built like a flattened predator rather than a person.
Other ancient fish with lungs worth knowing
Tiktaalik is the most famous answer, but it is not the only one. If your question is broader—"were there ancient fish the size of humans that breathed with lungs?"—several other animals deserve mention.
Lungfish. Modern lungfish are the clearest living example of fishes with true lungs, and some extinct lungfish were large. They are not human-sized in most cases, but they demonstrate the lung-in-a-fish body plan directly. Living lungfish surface to gulp air and can survive drought by burrowing and aestivating.
Bichirs. These African freshwater fishes have paired lung-like organs and can breathe air. They are not ancient in the sense of being extinct, but they preserve a body plan and breathing strategy that is old within bony fishes.
Other elpistostegalians. Elpistostege and related forms from the Devonian share Tiktaalik's general body plan and are reconstructed as air-breathing shallow-water predators. Some were comparable in size.
Early tetrapods. Acanthostega and Ichthyostega were not fish, but they were thoroughly aquatic animals with limbs, gills, and lungs. They blur the line your question is drawing, which is precisely the point: the fish-to-tetrapod transition was gradual, and lungs were part of the fish toolkit before limbs were used for walking.
How scientists know—and what they cannot know
The evidence for Tiktaalik's lungs comes from three places. First, skeletal anatomy: the ribcage, skull shape, and fin structure indicate an animal that could support its head above water and gulp air. Second, phylogeny: Tiktaalik's position among lobe-finned fishes means lungs are expected, because lungs are ancestral in that group. Third, comparison with living relatives: lungfish and bichirs show how air-breathing organs function in fishes, and their anatomy informs reconstructions of extinct forms.
What scientists cannot do is point to a fossilized Tiktaalik lung. Soft tissues rarely preserve, and no such organ has been recovered. Claims about the precise size, shape, or efficiency of Tiktaalik's lungs are inferences, not direct observations. This does not make the lung interpretation weak—it is supported by multiple independent lines of evidence—but it does mean the confident popular phrasing "Tiktaalik had lungs" is shorthand for "Tiktaalik's anatomy and evolutionary position make lungs highly likely, and its lifestyle is consistent with air-breathing."
There is also debate about how much time Tiktaalik spent out of water, how it moved, and whether its fins were used for walking or only for propping and paddling. Those questions are active research areas, and they do not affect the basic answer to your question: yes, this was a large fish with lungs.
Why the confusion arises
Part of what makes this topic confusing is that "fish" and "lungs" feel like they belong to different categories. Lungs are associated with land animals; gills with fish. The reality is that the boundary is porous. Many fishes breathe air, and the organ they use is evolutionarily the same structure that became the tetrapod lung. The swim bladder of a goldfish and the lung of a lungfish are cousins.
A second source of confusion is scale. Tiktaalik is often described as a "fishapod" or a "missing link," language that can make it sound like a half-formed creature. It was a fully functional animal, well adapted to its environment, not a transitional failure. Its combination of fish and tetrapod features is exactly what evolutionary theory predicts for a lineage living in shallow, oxygen-variable water.
A third is the word "breathed." Tiktaalik did not breathe the way you do. It likely gulped air at the surface and passed it into a vascularized organ, supplementing gill-based oxygen uptake. That is air breathing, but it is not lung ventilation in the mammalian sense. If your question is "did it have lungs?" the answer is yes, with that qualification. If your question is "did it breathe only air?" the answer is no.
Putting it together
If you searched for an ancient human-sized fish that breathed with lungs, Tiktaalik roseae is the best-supported answer: a roughly human-length lobe-finned fish from the Late Devonian, about 375 million years ago, with gills and lungs, flattened skull, and fin bones that anticipate limbs. It lived in shallow water, likely gulped air when oxygen was low, and sits close to the origin of tetrapods.
The broader point is that lungs are ancient fish equipment, not a land-animal invention. Tiktaalik is a vivid example of that fact, but it is one node in a long transition, and the fossil record preserves the skeletal evidence rather than the soft organs themselves. That is why the accurate answer is confident about the anatomy and the evolutionary placement, and appropriately careful about the exact physiology of an animal no one has ever seen alive.