Mas’ala 5477الأمShafi'ivol. 2, p. 112vol. 2, p. 112 وَإِنْ أَزْمَعَ الْفِطْرَ ثُمَّ أَزْمَعَ الصَّوْمَ بَعْدَ الْفَجْرِ لَمْ يُجْزِهِ فِي حَضَرٍ كَانَ أَوْ فِي سَفَرٍ، Read the whole chapterCopy with source On the map: FastingCompare