This is a pun on "heir". The prodigal son was having a bad hair day. Hair sounds like heir. An heir is a person who has the legal right to the rank or property of someone who has died. The prodigal son is from a bible story about a son who inherits his father's fortune and wastes it all. Thus, he was a "bad heir".
The prodigal son was having a bad heir day .