Jeremiah 22:15

Amplified Bible (AMP)

“Do you think that you become a king because you have much more cedar [in your palace than Solomon]?
Did not your father [Josiah], as he ate and drank,
Do just and righteous acts [being upright and in right standing with God]?
Then all was well with him.

Read Jeremiah 22:15 in other translations