Formula powder isn't sterile, so the water needs to still be fairly hot, not lukewarm, when you mix it in to kill any bacteria that might be present. If the water had already cooled a lot by the time you prepared this feed, it's safer to discard it and make a fresh bottle rather than give it to your baby.
Next Steps
Boil fresh water for each feed, let it cool only briefly, and mix the powder while it's still fairly hot, then cool the bottle under a running tap before feeding. Avoid reusing water that has been sitting out for a while.
Health Tips
Watch for fever, vomiting, or unusual fussiness after this feed, and see your paediatrician if any of these appear.