I looked all over for a date and got everything from “early 1800s” to “late 1800s” but nothing exact, so I had to make an educated guess. The first cameras practical enough to take such a photo were developed around 1840 and the excavations began in 1867.
The Germans never got even close to where the sphinx is located in WW2. The Allied stopped the Axis advance in North Africa hundreds of kilometres west of there.