Where can you find a flute to make any Pokemon GO to sleep?

you get it in the tower where you fight the marowak, after u get to the top and talk the the old man and he will take you to his house and will talk a little and gives you a pokeflute. it is located in lavender town