I Kings 2:27 Halakhah

וַיְגָ֤רֶשׁ שְׁלֹמֹה֙ אֶת־אֶבְיָתָ֔ר מִהְי֥וֹת כֹּהֵ֖ן לַֽיהוָ֑ה לְמַלֵּא֙ אֶת־דְּבַ֣ר יְהוָ֔ה אֲשֶׁ֥ר דִּבֶּ֛ר עַל־בֵּ֥ית עֵלִ֖י בְּשִׁלֹֽה׃ (פ)

So Solomon thrust out Abiathar from being priest unto the LORD; that the word of the LORD might be fulfilled, which He spoke concerning the house of Eli in Shiloh.

Read halakhic rulings (Jewish law) on I Kings 2:27: and classical halakhic sources.