Hadith.2004 – Imam (as) was asked about a voluntary fasting person who encounters a necessity.
Imam (as) said: "He is at liberty to decide until the time of ‘Asr (afternoon). If he delays until ‘Asr and then decides to fast, having not initially intended to, he may fast that day if he wishes."