This indicates that Adonijah counted Solomon as a rival and an obstacle to his ambitions.—1 Ki. 1:5-10.
... In the meantime, Joab, having heard of Solomon’s action, fled to grab hold of the horns of the altar, but was there slain by Benaiah at Solomon’s order. (1 Ki. 2:26-35)