You searched for: “cryptomnesia
cryptomnesia (s) (noun) (no plural)
A recollection to the mind about a forgotten situation that seems entirely new to the person: Timothy sat and thought about how his new painting should represent the hillside, not realising that he was experiencing cryptomnesia because the exact view, as a painting, was already hanging in the little museum of the town!