The Pedestrian by Ray Bradbury

In a near-future city where residents sit passively inside watching screens, a lone man who enjoys walking the empty streets at night is stopped by an automated police car, questioned for his odd behavior, and ultimately taken away to a psychiatric institution for refusing to conform; the brief encounter exposes the chilling effects of technology, enforced conformity, and the erasure of simple human freedoms.