In a 2011 studyTrusted Source of 41 boys diagnosed with ADHD, background music distracted some of the boys, but it appeared to lead to better performance in the classroom for others.
I have ADHD and I use to listen to music while I did my homework because it would help me focus. My mom could never understand why I had music going while doing homework and she would shut off the radio and I couldnt stay focused.