Haftarah for Vayechi
I Kings 2:1-12
David was nearing death, so he called Solomon to his side. He charged him with always following G-d and Torah so that he would be worthy of G-d's promise to be with their descendants. David then told Solomon to punish Yoav. Yoav killed Avshalom counter to David's orders, plus Avner and Amasa, who had defected to David's side. While David did not consider himself in a position to punish Yoav, Solomon could do so. David also told Solomon to treat the descendants of Barzilai well, for their father's aid when David fled from Avshalom. Finally, David warned Solomon not to trust Shimei ben Gera. Shimei was an opportunist; when David was down, he kicked him. When David was back up, he groveled. Shimei should be dealt with at the first sign of trouble, David said.
David passed away at the age of 70, having reigned a total of 40 years. Solomon assumed the throne.