Background
Fasting
Background to Matthew 6:16–18
To fast was to go without food for a time, as a way of humbling oneself before God. The law called the people to humble themselves on the Day of Atonement (Lev 16:29–31).
In the Old Testament people also fasted in grief, in repentance and when they needed God's help (Joel 2:12; Jonah 3:5; Ezra 8:21–23). Isaiah 58 warned that fasting means nothing when it is joined to injustice.
By Jesus' day some Pharisees fasted regularly, and showing it had become a way to be admired. John's disciples fasted too (Matt 9:14).
Jesus does not tell his disciples to stop. He assumes they will fast and teaches them to do it for the Father alone. Putting oil on the head and washing the face were ordinary daily care, so the person looked as usual and no one but God knew.
In Scripture
Matthew 6:16–18; 9:14–17