It is narrated from Sayyiduna Ibn Umar (may Allah be pleased with them both) that you should not intend to pray at the time of sunrise or sunset, because the Noble Prophet (peace and blessings of Allah be upon him) forbade this.
Hadith Referenceمسند احمد / مسند المكثرين من الصحابة / 4840