1 Kings 3:10

And the speech pleased the Lord, that Solomon had asked this thing.

Cross-reference

Proverbs 15:8 declares that the prayer of the upright delights God, exactly what happened when Solomon's request pleased the Lord.