It is reported that Abū Hurayrah – Allāh be pleased with him – said:
Three things are from Imān: when a man has nocturnal emission during a cold night, so he gets up – only Allāh sees him – and he has a full wash (ghusl); when a person fasts on a hot day; and when a man prays in a barren land, where none but Allāh sees him.
Al-Bayhaqī, Shu’ab Al-Īmān article 51