The Danish penal code § 253[1] punishes people with up to 2 years in prison, those who - without high risk to themselves or others - intentionally do not help someone after ability, who is clearly life threatened.
Additionally, the Danish rules of the road § 9[2] have rules for acting in the event of an accident; specifically, that they have a duty to help.
[1] https://www.retsinformation.dk/eli/lta/2025/1294#P253 [2] https://www.retsinformation.dk/eli/lta/2024/1312#P9