Sayyiduna Abdullah bin Mas'ud (may Allah be pleased with him) said: "We were forbidden from praying at the time the sun rises and at the time it sets."