[Machine] The Messenger of Allah ﷺ went out during the month of Ramadan and fasted until he reached Kadid, then he broke his fast. And only the last part of his action is considered.
خَرَجَ رَسُولُ اللهِ ﷺ فِي شَهْرِ رَمَضَانَ فَصَامَ حَتَّى إِذَا بَلَغَ الْكَدِيدَ أَفْطَرَ وَإِنَّمَا يُؤْخَذُ بِالْآخَرِ مِنْ فِعْلِهِ ﷺ