SOQL Query To Get Recently Viewed Records
SOQL Query:
Following query is to see who has viewed recently any account in your org.
SELECT Id, Name, Type, LastViewedDate, Profile.Name FROM RecentlyViewed WHERE Type ='Account' ORDER BY LastViewedDate DESC