Someone wrecked in a single-vehicle accident and you stopped and asked them if they were okay, they said they were, and then you drove away. There's nothing wrong with that. What are you afraid of getting charged with, breaking a Good Samaritan law? "Extremely illegal" would be if you accidentally ran over him after he fell off his bike, and then stuffed the body in your trunk and then dumped it in a creek later.