“Verily, never will God change the condition of a people until they change it themselves..”
[Qur'an 13:11]
Hadith:
“One day Prophet Muhammad, peace and blessings be upon him, noticed a Bedouin leaving his camel without tying it.
He asked the Bedouin, ‘Why don’t you tie down your camel?’
The Bedouin answered, 'I put my trust in Allah .’
The Prophet then said, 'Tie your camel first, then put your trust in Allah ’”
[Tirmidhi]
So first put your effort, then put your trust.