Kuta Sutta – A Good Roof
In the Kuta Sutta, the Buddha teaches Anathapindika the importance of protecting one’s mind through wise restraint. Anathapindika was a wealthy businessman and early benefactor of the Buddha and the original Sangha. Anathapindika integrated the Eightfold Path and awakened while continuing to live in the world of commerce free of worldly entanglements.
Anguttara Nikaya 3:110
On one occasion Anathapindika went to the Buddha, bowed with respect for his teacher, and sat to one side.
The Buddha, acknowledging his benefactor, instructed him in the Dhamma: “When un-restrained the mind has no protection. From a mind lacking protection it follows that the body is unprotected and so verbal and mental actions are unprotected, an uncomfortable and disappointing abode. 
“Just as when a house is poorly roofed the house is unprotected. The beams, the walls, the floors, all become soggy. This house is an uncomfortable and disappointing abode.
“In the same manner, from an un-restrained mind, lacking protection, one’s bodily, verbal, and mental actions get soggy and become an uncomfortable and disappointing abode. (Refined) Mindfulness has no lodging and the opportunity for an auspicious life is lost. 
“Friend, just as when a house is properly roofed the house is protected. The beams, the walls, the floors, won’t rot. This house is a comfortable and content abiding.
“When restrained the mind is protected. When the mind is protected bodily, verbal, and mental actions are also protected. A comfortable and content abiding is present. (Refined) Mindfulness is well-established and the opportunity for an auspicious life is present.
End Of Sutta