As Lucy left her home on her birthday a bus flashed her with mud and ruined her new sweater happy birthday to me she muttered what figure of speech is shown in the paragraph

The figure of speech shown in the paragraph is personification. This is because the bus is described as "flashing" Lucy with mud, which is a human action attributing human-like qualities to an inanimate object.