Narrated Abu 'Amir or Abu Malik Al-Ash'ari:
that he heard the Prophet (ﷺ) saying, "From among my followers there will be some people who will consider illegal sexual intercourse, the wearing of silk, the drinking of alcoholic drinks and the use of musical instruments, as lawful. And there will be some people who will stay near the side of a mountain and in the evening their shepherd will come to them with their sheep and ask them for something, but they will say to him, 'Return to us tomorrow.' Allah will destroy them during the night and will let the mountain fall on them, and He will transform the rest of them into monkeys and pigs and they will remain so till the Day of Resurrection.
This hadith controdicts this one :
That once Abu Bakr came to her on the day of Id-ul-Fitr or Id ul Adha while the Prophet (ﷺ) was with her and there were two girl singers with her, singing songs of the Ansar about the day of Buath. Abu Bakr said twice. "Musical instrument of Satan!" But the Prophet (ﷺ) said, "Leave them Abu Bakr, for every nation has an Id (i.e. festival) and this day is our Id."
In one hadith prophet Muhammad(PBUH) is saying, "Leave them Abu Bakr, for every nation has an Id (i.e. festival) and this day is our Id.", means that he had no problem with music. But in the first hadith he is saying that music is illegal.