And David was the father of Solomon by the wife of UriahReally? The first chapter of the first book of the New Testament and we're airing that dirty laundry? Solomon is David's by Bathsheba, who is Uriah's wife? Did we need to tell that? Uriah was already dead by the time Solomon was conceived. Why share that information?
Maybe to show that God's plans will prevail no matter our sin? Maybe to remind us that God's grace is bigger than our mistakes (even BIG mistakes like adultery and murder)? Maybe to spotlight the Lord rather than His fallible leaders? Maybe to illustrate that the truth will set us free (John 8:32)?
I'm not sure why Matthew chose that phrase over something more positive or more neutral or more gracious. Sometimes I am frustrated by the pervasive attitude in many churches that negative or unsavory facts should be couched in a positive, skirting-the-real-issue sort of way. "David is the father of Solomon by his wife, Bathsheba" is what most of our church missives would have read. Yes, we need to be gracious about other people, not gossip, and choose to believe the best about others. But there are times when the truth and the facts need to be baldly stated so that all of us can see the glory of God as it contrasts with our sin and the sovereignty of the Lord as He accomplishes His purpose in spite of us.