This is another bit of royal re-use of a predecessor’s monument, this time from the Ramesside Period. The blocks were found in 1912/3 by the Met Museum’s excavations in the Asasif, the area of Western Thebes in front of Hatshepsut’s temple at Deir el Bahri.
They were part of the foundations of a large temple, started by Ramesses IV and continued by his two successors but never finished. Originally, however, the blocks were part of a doorjamb in a monument belonging to Ramesses II, who ruled about 60 years before Ramesses IV.
That’s not the only way it’s been reused. If you look at the cartouches you can see that those on the bottom register are different to the pairs of cartouches above. That’s because the ones at the bottom were added later, by Ramesses III.
The blocks are now in the Met Museum, acc. no.: 13.183.2 A-B
See it on my photo site: https://photos.talesfromthetwolands.org/picture.php?/833/category/6