Praise be to Allah, the Lord of the Worlds; and may His blessings and peace be upon our Prophet Muhammad and upon all his Family and Companions.
All kinds of music are forbidden because it is a waste of time, including the flute. It is unlawful to play the flute or listen to it.
Allah knows best.