According to historical accounts, the Litany of the Sea was not a mere literary composition but a . While traveling for Hajj by sea, Imam ash-Shadhili and his companions were stranded for days due to unfavorable winds.