While away the time

To spend or pass time pleasantly.

We spent the afternoon whiling away the time by the river.