As far as I know, prophet (s.a) didn't explicitly mention the musical instruments that are allowed and that are not allowed. Also, he didn't mention in which all situations any musical instrument(s) can be used. (like in Eid, weddings..) . These rulings are created by later scholars who go through hadiths and when they see a particular instrument being used in a particular situation, they say that instrument is allowed in that situation. Problem is not all situations and instruments get recorded in the hadith and we cannot say all other instruments and situations it is forbidden. Like in modern world music is generated electronically and we have them in our ring tones, calling bells, computer start up/shut down etc. We cannot categorically say all this are forbidden (haraam) because it is not mentioned in hadith.
We should be very careful when declaring something as forbidden or allowed (haraam or halaal)
But say not - for any false thing that your tongues may put forth,-
"This is lawful, and this is forbidden," so as to ascribe false things
to Allah. For those who ascribe false things to Allah, will never
prosper. Quran 16:116