1 Kings 18:36-37
And it came to pass, at the time of the offering of the evening sacrifice, that Elijah the prophet came near and said, “LORD God of Abraham, Isaac, and Israel, let it be known this day that You are God in Israel and I am Your servant, and that I have done all these things at Your word. 37 Hear me, O LORD, hear me, that this people may know that You are the LORD God, and that You have turned their hearts back to You again.”
Here is probably Elijah’s most famous prayer, which he prays openly and loudly so all the people could hear. The intention of the prayer when he prays “hear me” is that God would answer by fire (v. 24) and show to all the people that God was really God and that Baal was no god at all. And so, as it happened, God did answer by fire; and when all the people saw it they fell on their faces and said, “The Lord, He is God! The Lord, He is God!”
In all our works and in all our public prayers, our motive must be to lift up the name of God just as Elijah did.
This is an excerpt from my book Prayer A to Z
To God be the glory, great things He has done. Yes, I agree. Whatever we do, do it to honor and glorify God.