Where is history stored with Safari 10.1 under OS10.11?
First, close Safari, then enter Time Machine from /Users/YOURUSERNAME/Library/Safari/.

Next, restore the LastSession.plist file.

Then reopen Safari and then you can "Reopen All Windows from Last Session" in the History menu.