Peter is quoting from the Psalms. This is a metaphor that means the religious leaders, like builders, rejected Jesus, but God will made him the most important in his kingdom, as a cornerstone in a building is important. (See: [[rc://en/ta/man/translate/figs-metaphor]])