Peace be upon you.
According to Grand Ayatollah Sayyid Sistani (may Allah protect him): Music that is suitable for entertainment and play, such as that played with instruments like the oud, tambour, qanun, and guitar, is prohibited, similar to singing. However, military and funeral music should also be avoided as a precaution.
Source: [Minhaj al-Salihin, Vol. 2, Issue 20](
https://www.sistani.org/arabic/book/15/770/)
According to Grand Ayatollah Sayyid Khamenei (may Allah protect him): Musical instruments that are commonly recognized as permissible can be used in a non-entertaining manner for lawful purposes. However, instruments that are recognized as specifically entertaining and misleading from the path of Allah should not be used. Instruments that are typically associated with misleading entertainment that leads to intellectual or doctrinal deviation or sin, and do not have a lawful benefit, are considered instruments of entertainment.
Source: [Answers to Religious Inquiries, Q 1128 + 1130](
https://www.leader.ir/ar/book/14/%D8%A7%D8%AC%D9%88%D8%A8%D8%A9-%D8%A7%D9%84%D8%A5%D8%B3%D8%AA%D9%81%D8%AA%D8%A7%D8%A1%D8%A7%D8%AA)
May you be successful in all good deeds.