Sayyiduna Abdullah bin Mas'ud (may Allah be pleased with him) said: "When the verse of prostration is the conclusion of the surah, then if you wish, bow, and if you wish, prostrate."