Abū Al-Dardā’ – Allah be pleased with him – said:

It is from a person’s knowledge and understanding that he sees to his needs first in order to turn to his prayer with a heart free of distractions.

Ibn Al-Mubārak in Al-Zuhd wa Al-Raqā’iq Vol.2 p726