Allah Power
He wants us to behave both ways. He teaches us to pray to Him and request Him to make things favorable for us and also wants us to use the faculties He has given to explore the possibilities He has provided.