Pillars built by Pharaoh.
Construction of Karnak temple started in the Middle Kingdom but those pillars and obelisks were built later in the New Kingdom.
Architecture and Construction
The Great Hypostyle Hall covers an area of 5,000 m2 (54,000 sq ft). The roof, now fallen, was supported by 134 columns in 16 rows; the 2 middle rows are higher than the others (being 10 metres (33 ft) in circumference and 24 metres (79 ft) high). The 134 papyrus columns represent the primeval papyrus swamp from which Amun; a self-created deity, arose from the waters of chaos at the beginning of creating. The hall was not constructed by Horemheb, or Amenhotep III as earlier scholars had thought but was built entirely by Seti I who engraved the northern wing of the hall with inscriptions. Decoration of the southern wing was completed by the 19th dynasty pharaoh Ramesses II.
Wikipedia, Great Hypostyle Hall, 2019
Only 3 obelisks still stand from the original 20.
The construction of the temple in Karnak started in the Middle Kingdom when the ruler of Egypt was called king. There were no Pharaohs at that time. But this Great Hypostyle Hall, those pillars and obelisks were built later in the New Kingdom when the ruler of Egypt was called Pharaoh. However this was portrayed in the Quran 1400 years before it was discovered.
[Quran 38:12] Before them the people of Noah denied the truth; as did Aad, and Pharaoh of pillars.
Here Pharaoh built pillars. Today we know that the title of Pharaoh was given to the rulers in the New Kingdom, not before. Although the construction of Karnak started in the Middle Kingdom when there were no Pharaohs, those pillars and obelisks in particular were built later in the New Kingdom by Pharaohs. No mistakes in the Quran.
How could an illiterate man who lived 1400 years ago have known who built those pillars?
For who was Pharaoh and who was king see: Pharaoh.