He won God's favour and asked God to allow him to provide a dwelling place for the God of Jacob.