A clear example of onomatopoeia in Harry Potter and the Prisoner of Azkaban appears in Chapter 11 ("The Dementor"):
"Bang went the door as it slammed shut."
The word "Bang" imitates the sound of the door slamming, functioning as onomatopoeia. Rowling uses such words sparingly but effectively to enhance sensory immersion.
Other potential examples include spell sounds ("Whoosh," "Crack," "Pop" for Apparition) and creature noises, but "Bang" is a textbook instance.