Panel with a fastening device