Good question.
Friction takes place between two solids when they are in contact.
On Earth (or really, anywhere that isn't the empty vacuum of space) moving objects slow down because they lose energy through friction — rubbing against other objects. Commonly on Earth, the source of friction would be land, water and/or air.
In the space also friction acting.. on the other planets also.