You can search your browsing history to quickly find webpages you visited.
Do one of the following:
Delete all text in the address and search field and enter a word or phrase. Then choose a webpage from the search results, or for a full search, choose Search for [your search term] in History.
Choose History > Show History, then type in the Search field at the bottom of the window.
Safari uses iCloud to keep your browsing history the same on all your Mac computers and iOS devices that have Safari turned on in iCloud preferences. However, your Mac can keep your browsing history for as long as a year, while some iOS devices keep browsing history for a month. To change how often your Mac removes history items, use the General pane of Safari preferences.