Sayyiduna Abdullah bin Mas'ud (may Allah be pleased with him) said: When the prostration is at the end of the surah, then if one wishes he may bow, and if he wishes he may prostrate.