OpenStreetMap doesn't have that. Services downstream from OpenStreetMap, like Komoot, OsmAnd, and Organic Maps do, but OpenStreetMap doesn't have any offline mode or anything (and only has very rudimentary GPS tracking on the website, for centering the map on your general location to make editing easier)