Sing a different tune

To contradict one’s previous ideas, to change one’s attitude.

Usually the man does not care if he disturbs his neighbors at midnight but now that he must get up early in the morning he is singing a different tune.