to do sth. on a whim

listen to the pronunciation of to do sth. on a whim