Welcome to Android Central! Are you talking about your Location History? If it's turned on for your Google account, you can review it at myaccount.google.com, under Data & Privacy>History Settings>Location History.
I accidentally checked off the box which indicates devices contributing to location history ( Samsung Galaxy S5 ) and I lost the history of my data from that device. Is there a way to retrieve it, i no longer see the device contributing to history so i can check in the box again.
I don't think that information is saved to the device. Even if it was, it would probably be in some system database somewhere that would be very difficult to access.