תָּמִ֤ים אַתָּה֙ בִּדְרָכֶ֔יךָ מִיּ֖וֹם הִבָּֽרְאָ֑ךְ עַד־נִמְצָ֥א עַוְלָ֖תָה בָּֽךְ׃
Thou wast perfect in thy ways from the day that thou wast created, till unrighteousness was found in thee.
Midrash Tanchuma
Thus you find that though I created Hiram, king of Tyre, righteous and upright, as it is said: Perfect in thy ways from the day that thou wast created (Ezek. 28:15), wickedness finally appeared in him and he was banished.