Indeed a group of the of the Messenger of Allah (S) locked...
Indeed a group of the of the Messenger of Allah (S) locked their doors and turned to worship when this verse was revealed, ‘And whosoever fears God, He will appoint for him a way out, and He will provide for him whence lie never reckoned (65:3).’ When the Prophet (S) came to hear about it, he summoned them and asked them, ‘What prompted you to do what you have done.’ They said, ‘O Messenger of Allah, God has guaranteed our livelihood and so we have turned to worship.’ He said to them: The prayer of one who does that would not be accepted.
You ought to seek livelihood.”[^8] The reason for the absence of contradiction between the traditions is that livelihood, and all matters for that, are subject to God’s power even after one’s effort. Our effort is not an independent agent in the acquisition of livelihood. Rather, to make effort is a duty of the creatures, and the ordainment of the affairs and all apparent and non-apparent means, most of which are beyond the control of the creatures, is by the determination of the Exalted Creator.
Hence a human being of sound conviction and informed of the courses of matters-while he does not refrain from effort and performs his duties as prescribed by reason…