Elijah does not pray fervently that the Lord would withhold the rain.
Actually, he simply prophecies that it will not rain again until he gives the word for it to rain.
We pray to prepare ourselves for the situations of life so that we can speak with authority and power by Christ Jesus.