1st Kings 3:3-5
God offered Solomon to ask for anything he wants.
1st Kings 3:6-9
Solomon asked God to give him wisdom (wise and understanding heart).
1st Kings 3:10-15
Since Solomon’s request pleased God, He gave Solomon wisdom, riches, and honor, and God even promised to give Solomon longer life if he will always obey God’s laws.
1st Kings 3:16-28
Using God’s wisdom Solomon was able to solve the baby issue between the two prostitutes.