All references are based on the 2017 edition of the NEC. When you want to replace a non-grounding-type receptacle but the wiring method does not include an equipment grounding conductor (EGC), such as ...
Replace it with another two-wire non-grounding receptacle Replace it with a GFCI receptacle marked "No Equipment Ground." No equipment grounding conductors are permitted to connect to receptacles ...