gf opens the file in a new buffer.
:b# can be used to toggle between the last two buffer. Keybinding it to something like Shift+space can help quickly jump between two files.
On the other hand, if you have followed a chain of gf calls to go though multiple files, ctrl - O [and ctrl - I to reverse it] might be more useful.