First Kings 1 says
David's servants sought a young woman to care for him and keep him warm, and Abishag the Shunammite was selected. The text explicitly says David did not have sexual relations with her. After David's death, Adonijah asked Bathsheba to request Abishag as his wife.
Solomon interpreted the request as politically significant, effectively a renewed claim to the royal succession, and ordered Adonijah's execution.