Gravity pulls on the object in the downward direction. The normal force to the inclined plane points in a direction perpendicular to the surface of the plane. Then for the object to be at rest, the frictional force must act parallel to the inclined plane, pointing in the upward direction.