Imaam Ash-Shaafi’ee said:

Whoever takes an oath by Allaah or by one of His Names, then breaks the oath, then he must make an expiation. And whoever swears by something other than Allaah, such as when a man says, ‘I swear by the Ka’bah’, or, ‘I swear by my father’, ‘I swear by such and such’, and then breaks it, then there is no expiation upon him.

And similar to this is the statement, ‘I swear by (on) my life…’ There is no expiation upon him. Taking an oath by other than Allaah is a detested and prohibited act due to the statement of the Messenger of Allaah (saw):

“Verily Allaah, the Mighty and Majestic, has prohibited that you swear by your fathers. So whoever is going to swear, then let him swear by Allaah, or let him remain silent.” [Bukhaaree 11/530 & Musim 1646]