How to output sticky posts using Query Loop?

Hello,

How can i achieve that and only show sticky post ?

Thanks

Welcome. Use custom query

return [
    'post_type' => 'post',
    'post_status' => 'publish',
    'posts_per_page' => -1,
    'post__in'  => get_option( 'sticky_posts' ),
  
];