sed -i '1s/^/your text /' file #Note the addition of the " " for concluding the new line after the insertion
$ sed -i '1s/^/added text /' file