I have a correction to make. I have several times over the years taught that Solomon was worshiping out of accord with God's Word the day before he asks for wisdom.
1 Kings 3:2-4
"Meanwhile the people sacrificed at the high places, because there was no house built for the name of the LORD until those days. 3 And Solomon loved the LORD, walking in the statutes of his father David, except that he sacrificed and burned incense at the high places. 4 Now the king went to Gibeon to sacrifice there, for that was the great high place: Solomon offered a thousand burnt offerings on that altar."
Well, it turns out that the tabernacle was there (see earlier post on Joshua 9), so it made sense to worship God there. David had established worship there, so it seems it was the approved place at the time.
So I've had this wrong, I think. What's tricky is how other passages (even 1 Kings 3:1!) show Solomon compromising. But in this matter, Solomon was right where he was supposed to be.